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
Get an Entry
from this store.
fn get_header(
&self,
hash: &HeaderHash
) -> StateQueryResult<Option<SignedHeaderHashed>>
fn get_header(
&self,
hash: &HeaderHash
) -> StateQueryResult<Option<SignedHeaderHashed>>
Get an SignedHeaderHashed
from this store.
fn get_element(&self, hash: &AnyDhtHash) -> StateQueryResult<Option<Element>>
fn get_element(&self, hash: &AnyDhtHash) -> StateQueryResult<Option<Element>>
Get an Element
from this store.
fn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>
fn contains_entry(&self, hash: &EntryHash) -> StateQueryResult<bool>
Check if an entry is contained in the store
fn contains_header(&self, hash: &HeaderHash) -> StateQueryResult<bool>
fn contains_header(&self, hash: &HeaderHash) -> StateQueryResult<bool>
Check if a header is contained in the store
Provided methods
fn contains_hash(&self, hash: &AnyDhtHash) -> StateQueryResult<bool>
fn contains_hash(&self, hash: &AnyDhtHash) -> StateQueryResult<bool>
Check if a hash is contained in the store