Trait photonio_uring::io::ReadAt

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

Reads some bytes from an object at a given position.

Required Associated Types

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

Required Methods

Reads some bytes from this object at pos into buf.

Returns the number of bytes read.

Implementors