Trait DatabaseGuard

Source
pub trait DatabaseGuard {
    // Required methods
    fn get(&self, hash: H256) -> Option<Vec<u8>>;
    fn set(&mut self, hash: H256, value: Vec<u8>);
}

Required Methods§

Source

fn get(&self, hash: H256) -> Option<Vec<u8>>

Source

fn set(&mut self, hash: H256, value: Vec<u8>)

Implementations on Foreign Types§

Source§

impl DatabaseGuard for HashMap<H256, Vec<u8>>

Source§

fn get<'a>(&'a self, hash: H256) -> Option<Vec<u8>>

Source§

fn set<'a>(&'a mut self, hash: H256, value: Vec<u8>)

Implementors§