Trait sc_light::blockchain::AuxStore [−][src]
Provides access to an auxiliary database.
Required methods
pub fn insert_aux<'a, 'b, 'c, I, D>(
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,
[src]
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,
Insert auxiliary data into key-value store.
Deletions occur after insertions.
pub fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8, Global>>, Error>
[src]
Query auxiliary data from key-value store.
Implementations on Foreign Types
impl<Block> AuxStore for Backend<Block> where
Block: Block,
<Block as Block>::Hash: Ord,
[src]
Block: Block,
<Block as Block>::Hash: Ord,
pub fn insert_aux<'a, 'b, 'c, I, D>(
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,
[src]
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,
pub fn get_aux(&self, key: &[u8]) -> Result<Option<Vec<u8, Global>>, Error>
[src]
impl<Block> AuxStore for Blockchain<Block> where
Block: Block,
[src]
Block: Block,
pub fn insert_aux<'a, 'b, 'c, I, D>(
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,
[src]
&self,
insert: I,
delete: D
) -> Result<(), Error> where
'b: 'a,
'c: 'a,
I: IntoIterator<Item = &'a (&'c [u8], &'c [u8])>,
D: IntoIterator<Item = &'a &'b [u8]>,