pub struct AsyncReadRecvStream<R>(/* private fields */);Implementations§
Source§impl<R> AsyncReadRecvStream<R>
impl<R> AsyncReadRecvStream<R>
Trait Implementations§
Source§impl<R: Debug> Debug for AsyncReadRecvStream<R>
impl<R: Debug> Debug for AsyncReadRecvStream<R>
Source§impl<R: AsyncReadRecvStreamExtra> RecvStream for AsyncReadRecvStream<R>
impl<R: AsyncReadRecvStreamExtra> RecvStream for AsyncReadRecvStream<R>
Source§async fn recv_bytes(&mut self, len: usize) -> Result<Bytes>
async fn recv_bytes(&mut self, len: usize) -> Result<Bytes>
Receive up to
len bytes from the stream, directly into a Bytes.Source§async fn recv_bytes_exact(&mut self, len: usize) -> Result<Bytes>
async fn recv_bytes_exact(&mut self, len: usize) -> Result<Bytes>
Auto Trait Implementations§
impl<R> Freeze for AsyncReadRecvStream<R>where
R: Freeze,
impl<R> RefUnwindSafe for AsyncReadRecvStream<R>where
R: RefUnwindSafe,
impl<R> Send for AsyncReadRecvStream<R>where
R: Send,
impl<R> Sync for AsyncReadRecvStream<R>where
R: Sync,
impl<R> Unpin for AsyncReadRecvStream<R>where
R: Unpin,
impl<R> UnsafeUnpin for AsyncReadRecvStream<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for AsyncReadRecvStream<R>where
R: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more