Skip to main content

PersistorIO

Trait PersistorIO 

Source
pub trait PersistorIO<S> {
    // Required methods
    fn read(path: PathBuf) -> impl Future<Output = Result<Option<S>>>;
    fn write(path: PathBuf, data: S) -> impl Future<Output = Result<()>>;
}

Required Methods§

Source

fn read(path: PathBuf) -> impl Future<Output = Result<Option<S>>>

Source

fn write(path: PathBuf, data: S) -> impl Future<Output = Result<()>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§