File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,31 @@ use stream::AsyncStream;
55use futures:: { Stream , Future } ;
66use codec:: http:: HttpServerCodec ;
77use bytes:: BytesMut ;
8+ use client:: async:: ClientNew ;
9+
10+ impl < S > WsUpgrade < S >
11+ where S : AsyncStream
12+ {
13+ pub fn async_accept ( self ) -> Result < ClientNew < S > , ( S , io:: Error ) > {
14+ unimplemented ! ( ) ;
15+ }
16+
17+ pub fn async_accept_with (
18+ mut self ,
19+ custom_headers : & Headers ,
20+ ) -> Result < ClientNew < S > , ( S , io:: Error ) > {
21+ unimplemented ! ( ) ;
22+ }
23+
24+ pub fn async_reject ( self ) -> Result < S , ( S , io:: Error ) > {
25+ unimplemented ! ( ) ;
26+ }
27+
28+ pub fn async_reject_with ( mut self , headers : & Headers ) -> Result < S , ( S , io:: Error ) > {
29+ unimplemented ! ( ) ;
30+ }
31+ }
32+
833
934pub trait AsyncIntoWs {
1035 /// The type of stream this upgrade process is working with (TcpStream, etc.)
You can’t perform that action at this time.
0 commit comments