Trait merkle_log::Store [−][src]
Represents access to immutable merkle tree nodes.
Required methods
#[must_use]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Implementations on Foreign Types
impl Store for HashMap<TreeID, Node>
[src]
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Delegates to HashMap::insert
.
Implementors
impl Store for MemoryStore
[src]
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 TreeID
) -> Pin<Box<dyn Future<Output = Result<Node, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
id: TreeID,
node: &'life1 Node
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Delegates to BTreeMap::insert
.