Trait freqfs::FileLoad

source ·
pub trait FileLoad: Send + Sync + Sized + 'static {
    // Required method
    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;
}
Expand description

Load a file-backed data structure.

Required Methods§

source

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,

Load this state from the given file.

Object Safety§

This trait is not object safe.

Implementors§