Trait novasmt::ContentAddrStore
source · pub trait ContentAddrStore: Send + Sync + 'static {
// Required methods
fn get<'a>(&'a self, key: &[u8]) -> Option<Cow<'a, [u8]>>;
fn insert(&self, key: &[u8], value: &[u8]);
// Provided method
fn realize(&self, hash: Hashed) -> Option<RawNode<'_>> { ... }
}
Expand description
Trait that implements a thread-safe, concurrent low-level content addressed store.