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§
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>>
Object Safety§
This trait is not object safe.