Trait freqfs::FileSave

source ·
pub trait FileSave<'en>: Send + Sync + Sized + 'static {
    // Required method
    fn save<'life0, 'async_trait>(
        &'en self,
        file: &'life0 mut File
    ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'en: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Write a file-backed data structure to the filesystem.

Required Methods§

source

fn save<'life0, 'async_trait>( &'en self, file: &'life0 mut File ) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'en: 'async_trait, 'life0: 'async_trait,

Save this state to the given file.

Object Safety§

This trait is not object safe.

Implementors§