Trait terminus_store::storage::FileLoad
source · pub trait FileLoad: Clone + Send + Sync {
type Read: AsyncRead + Unpin + Send;
// Required methods
fn exists<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn open_read_from<'life0, 'async_trait>(
&'life0 self,
offset: usize
) -> Pin<Box<dyn Future<Output = Result<Self::Read, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn map<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
// Provided methods
fn open_read<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Read, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
fn map_if_exists<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait { ... }
}
Required Associated Types§
Required Methods§
fn exists<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn size<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn open_read_from<'life0, 'async_trait>(
&'life0 self,
offset: usize
) -> Pin<Box<dyn Future<Output = Result<Self::Read, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn map<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Provided Methods§
fn open_read<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Read, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn map_if_exists<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Object Safety§
This trait is not object safe.