[][src]Trait drone_core::io::Read

pub trait Read<'sess> {
    type Error;
    pub fn read(
        &'sess mut self,
        buf: &'sess mut [u8]
    ) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>; }

The Read trait allows for reading bytes from a source asynchronously.

Associated Types

type Error[src]

The error type returned by Read::read.

Loading content...

Required methods

pub fn read(
    &'sess mut self,
    buf: &'sess mut [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Self::Error>> + Send + 'sess>>
[src]

Pull some bytes from this source into the specified buffer asynchronously, eventually returning how many bytes were read.

Loading content...

Implementors

Loading content...