pub struct RecvStream { /* private fields */ }Expand description
An incoming stream; its WebTransport header was consumed on accept.
Trait Implementations§
Source§impl Debug for RecvStream
impl Debug for RecvStream
Source§impl Drop for RecvStream
impl Drop for RecvStream
Source§impl RecvStream for RecvStream
impl RecvStream for RecvStream
Source§fn poll_read(
&mut self,
cx: &mut Context<'_>,
dst: &mut [u8],
) -> Poll<Result<Option<usize>, Self::Error>>
fn poll_read( &mut self, cx: &mut Context<'_>, dst: &mut [u8], ) -> Poll<Result<Option<usize>, Self::Error>>
Poll to read some data into the provided slice. Read more
Source§fn stop(&mut self, code: u32)
fn stop(&mut self, code: u32)
Send a
STOP_SENDING QUIC code, informing the peer that no more data will be
read. Read moreSource§fn poll_closed(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_closed(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Poll until the stream has been closed by either side. Read more
Auto Trait Implementations§
impl !Freeze for RecvStream
impl !RefUnwindSafe for RecvStream
impl !Send for RecvStream
impl !Sync for RecvStream
impl !UnwindSafe for RecvStream
impl Unpin for RecvStream
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> RecvStream for Swhere
S: RecvStream + 'static,
impl<S> RecvStream for Swhere
S: RecvStream + 'static,
Source§fn read<'a>(&'a mut self, dst: &'a mut [u8]) -> Read<'a, Self> ⓘ
fn read<'a>(&'a mut self, dst: &'a mut [u8]) -> Read<'a, Self> ⓘ
Read some bytes into the slice, or
None once the stream is finished.Source§fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B> ⓘwhere
B: BufMut,
fn read_buf<'a, B>(&'a mut self, buf: &'a mut B) -> ReadBuf<'a, Self, B> ⓘwhere
B: BufMut,
Read some bytes into the buffer, advancing it, or
None once finished.Source§fn read_chunk(&mut self, max: usize) -> ReadChunk<'_, Self> ⓘ
fn read_chunk(&mut self, max: usize) -> ReadChunk<'_, Self> ⓘ
Read the next chunk of data, up to
max bytes, or None once finished.Source§fn closed(&mut self) -> RecvClosed<'_, Self> ⓘ
fn closed(&mut self) -> RecvClosed<'_, Self> ⓘ
Wait until the stream is closed by either side.