Trait FileLoad

Source
pub trait FileLoad:
    Send
    + Sync
    + Sized
    + 'static
    + Send {
    // Required method
    fn load(
        path: &Path,
        file: File,
        metadata: Metadata,
    ) -> impl Future<Output = Result<Self, Error>> + Send;
}
Expand description

Load a file-backed data structure.

Required Methods§

Source

fn load( path: &Path, file: File, metadata: Metadata, ) -> impl Future<Output = Result<Self, Error>> + Send

Load this state from the given file.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§