Trait sc_client_api::backend::AuxStore[][src]

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

Provides access to an auxiliary database.

Required methods

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

Insert auxiliary data into key-value store.

Deletions occur after insertions.

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

Query auxiliary data from key-value store.

Loading content...

Implementors

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

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

Loading content...