Trait io_trait::AsyncFile

source ·
pub trait AsyncFile {
    type Operation<'a>: AsyncOperation
       where Self: 'a;

    // Required methods
    fn read<'a>(
        &'a mut self,
        offset: u64,
        buffer: &'a mut [u8]
    ) -> Result<Self::Operation<'a>>;
    fn write<'a>(
        &'a mut self,
        offset: u64,
        buffer: &'a [u8]
    ) -> Result<Self::Operation<'a>>;
}

Required Associated Types§

source

type Operation<'a>: AsyncOperation where Self: 'a

Required Methods§

source

fn read<'a>( &'a mut self, offset: u64, buffer: &'a mut [u8] ) -> Result<Self::Operation<'a>>

source

fn write<'a>( &'a mut self, offset: u64, buffer: &'a [u8] ) -> Result<Self::Operation<'a>>

Object Safety§

This trait is not object safe.

Implementors§