pub trait FileLoad: Send + Sync + Sized + 'static {
fn load<'life0, 'async_trait>(
path: &'life0 Path,
file: File,
metadata: Metadata
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
file: &'life1 mut File
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Load & save methods for a file data container type.