pub struct BorrowedReadHalf<'s, 'sel, const FDS: usize> { /* private fields */ }Expand description
Read half of a TCP/Unix stream.
Implementations§
Source§impl<'s, 'sel, const FDS: usize> BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> BorrowedReadHalf<'s, 'sel, FDS>
Sourcepub async fn readable(&mut self)
pub async fn readable(&mut self)
Waits until the stream is readable.
The stream may still turn out to be not readable, so try_read
can return Errno::AGAIN after it.
§Cancel safety
This method is cancel safe.
Trait Implementations§
Source§impl<const FDS: usize> AsyncRead for BorrowedReadHalf<'_, '_, FDS>
impl<const FDS: usize> AsyncRead for BorrowedReadHalf<'_, '_, FDS>
Auto Trait Implementations§
impl<'s, 'sel, const FDS: usize> !RefUnwindSafe for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> !Send for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> !Sync for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> !UnwindSafe for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> Forget for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> Freeze for BorrowedReadHalf<'s, 'sel, FDS>where
&'s Socket<'sel, FDS>: Freeze,
impl<'s, 'sel, const FDS: usize> Move for BorrowedReadHalf<'s, 'sel, FDS>
impl<'s, 'sel, const FDS: usize> Unpin for BorrowedReadHalf<'s, 'sel, FDS>where
&'s Socket<'sel, FDS>: Unpin,
impl<'s, 'sel, const FDS: usize> UnsafeUnpin for BorrowedReadHalf<'s, 'sel, FDS>where
&'s Socket<'sel, FDS>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> AsyncReadExt for T
impl<T> AsyncReadExt for T
Source§fn read_exact<'a>(
&'a mut self,
buf: &'a mut [u8],
) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>>
fn read_exact<'a>( &'a mut self, buf: &'a mut [u8], ) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>>
Fills the whole given buffer, calling
AsyncRead::read until it’s done. Read moreSource§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