pub trait AsyncReadWithTimeoutExt: AsyncRead {
    // Provided method
    fn read_with_timeout<'a, SLEEP: Sleepble>(
        &'a mut self,
        buf: &'a mut [u8],
        dur: Duration
    ) -> ReadWithTimeout<'a, Self> 
       where Self: Unpin { ... }
}

Provided Methods§

source

fn read_with_timeout<'a, SLEEP: Sleepble>( &'a mut self, buf: &'a mut [u8], dur: Duration ) -> ReadWithTimeout<'a, Self> where Self: Unpin,

Implementors§

source§

impl<R: AsyncRead + ?Sized> AsyncReadWithTimeoutExt for R