Skip to main content

Store

Trait Store 

Source
pub trait Store {
    // Required methods
    fn get(&self, key: &[u8], args: &BTreeMap<&str, Tree>) -> Option<Tree>;
    fn set(&self, key: &[u8], args: &BTreeMap<&str, Tree>) -> Option<SetOutcome>;
    fn delete(&self, key: &[u8], args: &BTreeMap<&str, Tree>) -> bool;
}
Expand description

A store provides addressed access to values.

Required Methods§

Source

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

Source

fn set(&self, key: &[u8], args: &BTreeMap<&str, Tree>) -> Option<SetOutcome>

Source

fn delete(&self, key: &[u8], args: &BTreeMap<&str, Tree>) -> bool

Implementors§