Trait holochain_state::query::Store[][src]

pub trait Store {
    fn get_entry(&self, hash: &EntryHash) -> StateQueryResult<Option<Entry>>;
fn get_header(
        &self,
        hash: &HeaderHash
    ) -> StateQueryResult<Option<SignedHeaderHashed>>;
fn get_element(
        &self,
        hash: &AnyDhtHash
    ) -> StateQueryResult<Option<Element>>;
fn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>;
fn contains_header(&self, hash: &HeaderHash) -> StateQueryResult<bool>; fn contains_hash(&self, hash: &AnyDhtHash) -> StateQueryResult<bool> { ... } }

Required methods

fn get_entry(&self, hash: &EntryHash) -> StateQueryResult<Option<Entry>>

Get an Entry from this store.

Get an SignedHeaderHashed from this store.

Get an Element from this store.

fn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>

Check if an entry is contained in the store

Check if a header is contained in the store

Provided methods

Check if a hash is contained in the store

Implementors