Trait PosIo

Source
pub trait PosIo {
    // Required methods
    async fn read(&self, start: u64, buf: &mut [u8]) -> Result<usize>;
    async fn write(&self, start: u64, buf: &[u8]) -> Result<usize>;
}

Required Methods§

Source

async fn read(&self, start: u64, buf: &mut [u8]) -> Result<usize>

Source

async fn write(&self, start: u64, buf: &[u8]) -> Result<usize>

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§