Skip to main content

Erased

Trait Erased 

Source
trait Erased {
Show 16 methods // Required methods fn name(&self) -> Name; fn names(&self, at: &Entry) -> String; fn residency(&self) -> Residency; fn disk_path(&self) -> Option<&Path>; fn read<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + 'a>>; fn exists<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<bool>> + 'a>>; fn write<'a>( &'a self, at: &'a Entry, bytes: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn append<'a>( &'a self, at: &'a Entry, bytes: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn truncate<'a>( &'a self, at: &'a Entry, len: u64, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn list<'a>( &'a self, dir: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'a>>; fn remove<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn create_dir<'a>( &'a self, dir: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn rename<'a>( &'a mut self, to: &'a Name, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>; fn discard(&self) -> Pin<Box<dyn Future<Output = Result<()>> + '_>>; fn claim( &self, now: WallTime, ) -> Pin<Box<dyn Future<Output = Result<Claim>> + '_>>; fn release(&self);
}

Required Methods§

Source

fn name(&self) -> Name

Source

fn names(&self, at: &Entry) -> String

Source

fn residency(&self) -> Residency

Source

fn disk_path(&self) -> Option<&Path>

Source

fn read<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>>> + 'a>>

Source

fn exists<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<bool>> + 'a>>

Source

fn write<'a>( &'a self, at: &'a Entry, bytes: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn append<'a>( &'a self, at: &'a Entry, bytes: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn truncate<'a>( &'a self, at: &'a Entry, len: u64, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn list<'a>( &'a self, dir: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>>> + 'a>>

Source

fn remove<'a>( &'a self, at: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn create_dir<'a>( &'a self, dir: &'a Entry, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn rename<'a>( &'a mut self, to: &'a Name, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>>

Source

fn discard(&self) -> Pin<Box<dyn Future<Output = Result<()>> + '_>>

Source

fn claim( &self, now: WallTime, ) -> Pin<Box<dyn Future<Output = Result<Claim>> + '_>>

Source

fn release(&self)

Implementors§

Source§

impl<S: Storage> Erased for S