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);
}