pub trait KeyValue {
    // Required methods
    fn get<K: Bytes, V: Bytes>(
        &self,
        key: &K
    ) -> Result<Option<Vec<u8>>, RrError>;
    fn put<K: Bytes, V: Bytes>(
        &mut self,
        key: &K,
        value: &V
    ) -> Result<(), RrError>;
}

Required Methods§

source

fn get<K: Bytes, V: Bytes>(&self, key: &K) -> Result<Option<Vec<u8>>, RrError>

source

fn put<K: Bytes, V: Bytes>(&mut self, key: &K, value: &V) -> Result<(), RrError>

Implementors§