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§
fn read(path: PathBuf) -> impl Future<Output = Result<Option<S>>>
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".