Trait photonio_uring::io::Read

source ·
pub trait Read {
    type Read<'a>: 'a + Future<Output = Result<usize, Error>>
    where
        Self: 'a
; fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> Self::Read<'a>; }
Expand description

Reads some bytes from an object.

Required Associated Types

A future that resolves to the result of Self::read.

Required Methods

Reads some bytes from this object into buf.

Returns the number of bytes read.

Implementors