[−][src]Trait sc_client::light::blockchain::AuxStore
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])>,
&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.
Implementors
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, Error = Error>,
[src]
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, Error = Error>,
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]
&self,
insert: I,
delete: D
) -> Result<()>
fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
[src]
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::Api: CoreApi<Block, Error = Error>,
[src]
B: Backend<Block>,
E: CallExecutor<Block>,
Block: BlockT,
Self: ProvideRuntimeApi<Block>,
Self::Api: CoreApi<Block, Error = Error>,
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]
&self,
insert: I,
delete: D
) -> Result<()>
Insert auxiliary data into key-value store.
fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
[src]
Query auxiliary data from key-value store.
impl<Block: BlockT> AuxStore for Blockchain<Block>
[src]
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]
&self,
insert: I,
delete: D
) -> Result<()>
fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8>>>
[src]
impl<Block: BlockT> AuxStore for sc_client::in_mem::Backend<Block> where
Block::Hash: Ord,
[src]
Block::Hash: Ord,
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]
&self,
insert: I,
delete: D
) -> Result<()>