[][src]Trait blockchain_core::StorageExternalities

pub trait StorageExternalities<Error> {
    fn read_storage(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>;
fn write_storage(&mut self, key: Vec<u8>, value: Vec<u8>);
fn remove_storage(&mut self, key: &[u8]); }

Externalities for reading a key value based storage.

Required methods

fn read_storage(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>

Read storage value.

fn write_storage(&mut self, key: Vec<u8>, value: Vec<u8>)

Write storage value.

fn remove_storage(&mut self, key: &[u8])

Remove storage value.

Loading content...

Implementors

Loading content...