pub struct RecvStream { /* private fields */ }Expand description
The receive half of a multiplexed stream.
Trait Implementations§
Source§impl Drop for RecvStream
impl Drop for RecvStream
Source§impl RecvStream for RecvStream
impl RecvStream for RecvStream
type Error = Error
Source§async fn read_chunk(
&mut self,
max: usize,
) -> Result<Option<Bytes>, <RecvStream as RecvStream>::Error>
async fn read_chunk( &mut self, max: usize, ) -> Result<Option<Bytes>, <RecvStream as RecvStream>::Error>
Read the next chunk of data, up to the max size. Read more
Source§async fn read_buf<B>(
&mut self,
buf: &mut B,
) -> Result<Option<usize>, <RecvStream as RecvStream>::Error>
async fn read_buf<B>( &mut self, buf: &mut B, ) -> Result<Option<usize>, <RecvStream as RecvStream>::Error>
Read some data into the provided buffer. Read more
Source§async fn read(
&mut self,
buf: &mut [u8],
) -> Result<Option<usize>, <RecvStream as RecvStream>::Error>
async fn read( &mut self, buf: &mut [u8], ) -> Result<Option<usize>, <RecvStream as RecvStream>::Error>
Read the next chunk of data, up to the max size. 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§async fn closed(&mut self) -> Result<(), <RecvStream as RecvStream>::Error>
async fn closed(&mut self) -> Result<(), <RecvStream as RecvStream>::Error>
Block 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 Unpin for RecvStream
impl UnsafeUnpin 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