[][src]Trait sc_light::blockchain::AuxStore

pub trait AuxStore {
    fn insert_aux<'a, 'b, 'c, I, D>(
        &self,
        insert: I,
        delete: D
    ) -> Result<(), Error>
    where
        'b: 'a,
        'c: 'a,
        D: IntoIterator<Item = &'a &'b [u8]>,
        I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>
;
fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8>>, Error>; }

Provides access to an auxiliary database.

Required methods

fn insert_aux<'a, 'b, 'c, I, D>(
    &self,
    insert: I,
    delete: D
) -> Result<(), Error> where
    'b: 'a,
    'c: 'a,
    D: IntoIterator<Item = &'a &'b [u8]>,
    I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>, 

Insert auxiliary data into key-value store.

Deletions occur after insertions.

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

Query auxiliary data from key-value store.

Loading content...

Implementations on Foreign Types

impl<Block> AuxStore for Blockchain<Block> where
    Block: Block
[src]

impl<Block> AuxStore for Backend<Block> where
    Block: Block,
    <Block as Block>::Hash: Ord
[src]

Loading content...

Implementors

impl<S: AuxStore, H: Hasher> AuxStore for sc_light::backend::Backend<S, H>[src]

Loading content...