pub struct RecvStream { /* private fields */ }Expand description
msquic-backed receive stream
Implements a quic::RecvStream backed by a msquic_async::ReadStream.
Trait Implementations§
Source§impl RecvStream for RecvStream
impl RecvStream for RecvStream
Source§type Buf = StreamRecvBuffer
type Buf = StreamRecvBuffer
The type of
Buf for data received on this stream.Source§fn poll_data(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<Self::Buf>, StreamErrorIncoming>>
fn poll_data( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<Self::Buf>, StreamErrorIncoming>>
Poll the stream for more data. Read more
Source§fn stop_sending(&mut self, error_code: u64)
fn stop_sending(&mut self, error_code: u64)
Send a
STOP_SENDING QUIC code.Auto Trait Implementations§
impl Freeze for RecvStream
impl !RefUnwindSafe for RecvStream
impl Send for RecvStream
impl Sync for RecvStream
impl Unpin for RecvStream
impl !UnwindSafe for RecvStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more