pub trait Persistor<V: VersionControlled> {
// Required methods
fn save(&self, value: &V) -> impl Future<Output = Result<()>>;
fn load(&self) -> impl Future<Output = Result<Option<V>>>
where Self: Sized;
}Required Methods§
fn save(&self, value: &V) -> impl Future<Output = Result<()>>
fn load(&self) -> impl Future<Output = Result<Option<V>>>where
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".