pub trait KeyValue: Send + Sync {
// Required methods
fn get(&self, key: Vec<u8>) -> Result<Vec<u8>, Error>;
fn insert(&self, key: Vec<u8>, value: Vec<u8>) -> Result<(), Error>;
}Expand description
Trivial key/value storage.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".