Trait AsyncReadTimeoutExt

Source
pub trait AsyncReadTimeoutExt: AsyncRead {
    // Provided methods
    fn read_timeout<'a>(
        &'a mut self,
        buf: &'a mut [u8],
        timeout: Duration,
    ) -> ReadTimeout<'a, Self> 
       where Self: Unpin { ... }
    fn read_fill_timeout<'a>(
        &'a mut self,
        buf: &'a mut [u8],
        timeout: Duration,
    ) -> ReadExactTimeout<'a, Self> 
       where Self: Unpin { ... }
    fn read_exact_timeout<'a>(
        &'a mut self,
        buf: &'a mut [u8],
        timeout: Duration,
    ) -> ReadExactTimeout<'a, Self> 
       where Self: Unpin { ... }
    fn read_to_end_timeout<'a>(
        &'a mut self,
        buf: &'a mut Vec<u8>,
        timeout: Duration,
        throw_on_timeout: bool,
    ) -> ReadToEndTimeout<'a, Self>
       where Self: Unpin { ... }
}

Provided Methods§

Source

fn read_timeout<'a>( &'a mut self, buf: &'a mut [u8], timeout: Duration, ) -> ReadTimeout<'a, Self>
where Self: Unpin,

Source

fn read_fill_timeout<'a>( &'a mut self, buf: &'a mut [u8], timeout: Duration, ) -> ReadExactTimeout<'a, Self>
where Self: Unpin,

Source

fn read_exact_timeout<'a>( &'a mut self, buf: &'a mut [u8], timeout: Duration, ) -> ReadExactTimeout<'a, Self>
where Self: Unpin,

Source

fn read_to_end_timeout<'a>( &'a mut self, buf: &'a mut Vec<u8>, timeout: Duration, throw_on_timeout: bool, ) -> ReadToEndTimeout<'a, Self>
where Self: Unpin,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§