pub trait Storable {
// Provided methods
fn store(&self, path: &PathBuf) -> Result<(), StorageError>
where Self: ProstEncode { ... }
fn load(path: &PathBuf) -> Result<Self, StorageError>
where Self: ProstDecode { ... }
}Provided Methods§
fn store(&self, path: &PathBuf) -> Result<(), StorageError>where
Self: ProstEncode,
fn load(path: &PathBuf) -> Result<Self, StorageError>where
Self: ProstDecode,
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.