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>>>; }
Expand description

Provides access to an auxiliary database.

Required methods

Insert auxiliary data into key-value store.

Deletions occur after insertions.

Query auxiliary data from key-value store.

Implementors

impl<Block> AuxStore for LightStorage<Block> where
    Block: BlockT

impl<Block> AuxStore for Backend<Block> where
    Block: BlockT

impl<B, E, Block, RA> AuxStore for Client<B, E, Block, RA> where
    B: Backend<Block>,
    E: CallExecutor<Block>,
    Block: BlockT,
    Self: ProvideRuntimeApi<Block>,
    <Self as ProvideRuntimeApi<Block>>::Api: CoreApi<Block>, 

impl<B, E, Block, RA> AuxStore for &Client<B, E, Block, RA> where
    B: Backend<Block>,
    E: CallExecutor<Block>,
    Block: BlockT,
    Client<B, E, Block, RA>: ProvideRuntimeApi<Block>,
    <Client<B, E, Block, RA> as ProvideRuntimeApi<Block>>::Api: CoreApi<Block>,