File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3
3
//! This module includes traits and types meant to allow being generic over any
4
4
//! QUIC implementation.
5
5
6
- use std:: task:: { self , Poll } ;
6
+ use std:: { pin :: Pin , task:: { self , Poll } } ;
7
7
8
8
use bytes:: Buf ;
9
9
@@ -68,7 +68,7 @@ pub trait SendStream<B: Buf> {
68
68
fn send_data ( & mut self , data : B ) -> Result < ( ) , Self :: Error > ;
69
69
70
70
/// Poll to finish the sending side of the stream.
71
- fn poll_finish ( & mut self ) -> Poll < Result < ( ) , Self :: Error > > ;
71
+ fn poll_finish ( & mut self , cx : & mut task :: Context < ' _ > ) -> Poll < Result < ( ) , Self :: Error > > ;
72
72
73
73
/// Send a QUIC reset code.
74
74
fn reset ( & mut self , reset_code : u64 ) ;
@@ -86,7 +86,7 @@ pub trait RecvStream {
86
86
/// When the receive side will no longer receive more data (such as because
87
87
/// the peer closed their sending side), this should return `None`.
88
88
fn poll_data (
89
- & mut self ,
89
+ self : Pin < & mut Self > ,
90
90
cx : & mut task:: Context < ' _ > ,
91
91
) -> Poll < Result < Option < Self :: Buf > , Self :: Error > > ;
92
92
You can’t perform that action at this time.
0 commit comments