KvStore

Trait KvStore 

Source
pub trait KvStore: Send + Sync {
    // Required method
    fn get(&self, key: &[u8]) -> Option<&[u8]>;
}
Expand description

A trait for key-value store for Streams.

Required Methods§

Source

fn get(&self, key: &[u8]) -> Option<&[u8]>

Implementations on Foreign Types§

Source§

impl KvStore for HashMap<Vec<u8>, Vec<u8>>

Source§

fn get(&self, key: &[u8]) -> Option<&[u8]>

Implementors§