pub trait KvStore: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<Vec<u8>>;
fn set(&self, key: &str, value: &[u8]);
}Expand description
Durable key/value storage for autosave.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".