Skip to content

Commit 1111ca1

Browse files
Jean-Christophe BEGUEJean-Christophe BEGUE
authored andcommitted
TEMP: things that might change in #3
1 parent 3e825a0 commit 1111ca1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/quic/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This module includes traits and types meant to allow being generic over any
44
//! QUIC implementation.
55
6-
use std::task::{self, Poll};
6+
use std::{pin::Pin, task::{self, Poll}};
77

88
use bytes::Buf;
99

@@ -68,7 +68,7 @@ pub trait SendStream<B: Buf> {
6868
fn send_data(&mut self, data: B) -> Result<(), Self::Error>;
6969

7070
/// 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>>;
7272

7373
/// Send a QUIC reset code.
7474
fn reset(&mut self, reset_code: u64);
@@ -86,7 +86,7 @@ pub trait RecvStream {
8686
/// When the receive side will no longer receive more data (such as because
8787
/// the peer closed their sending side), this should return `None`.
8888
fn poll_data(
89-
&mut self,
89+
self: Pin<&mut Self>,
9090
cx: &mut task::Context<'_>,
9191
) -> Poll<Result<Option<Self::Buf>, Self::Error>>;
9292

0 commit comments

Comments
 (0)