Trait holochain_cascade::Cascade
source · pub trait Cascade {
// Required methods
fn retrieve_entry<'life0, 'async_trait>(
&'life0 self,
hash: EntryHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(EntryHashed, CascadeSource)>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve_action<'life0, 'async_trait>(
&'life0 self,
hash: ActionHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(SignedActionHashed, CascadeSource)>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn retrieve<'life0, 'async_trait>(
&'life0 self,
hash: AnyDhtHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(Record, CascadeSource)>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
TODO
Required Methods§
sourcefn retrieve_entry<'life0, 'async_trait>(
&'life0 self,
hash: EntryHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(EntryHashed, CascadeSource)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_entry<'life0, 'async_trait>( &'life0 self, hash: EntryHash, options: NetworkGetOptions ) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(EntryHashed, CascadeSource)>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Retrieve [Entry
] either locally or from an authority.
Data might not have been validated yet by the authority.
sourcefn retrieve_action<'life0, 'async_trait>(
&'life0 self,
hash: ActionHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(SignedActionHashed, CascadeSource)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_action<'life0, 'async_trait>( &'life0 self, hash: ActionHash, options: NetworkGetOptions ) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(SignedActionHashed, CascadeSource)>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Retrieve [SignedActionHashed
] from either locally or from an authority.
Data might not have been validated yet by the authority.
sourcefn retrieve<'life0, 'async_trait>(
&'life0 self,
hash: AnyDhtHash,
options: NetworkGetOptions
) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(Record, CascadeSource)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve<'life0, 'async_trait>( &'life0 self, hash: AnyDhtHash, options: NetworkGetOptions ) -> Pin<Box<dyn Future<Output = CascadeResult<Option<(Record, CascadeSource)>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Retrieve data from either locally or from an authority. Data might not have been validated yet by the authority.
Implementors§
impl Cascade for MockCascade
TODO