Skip to main content

KvStore

Trait KvStore 

Source
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§

Source

fn get(&self, key: &str) -> Option<Vec<u8>>

Source

fn set(&self, key: &str, value: &[u8])

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§