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§

source

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.

source

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.

source

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§

source§

impl Cascade for MockCascade

TODO

source§

impl<Network> Cascade for CascadeImpl<Network>where Network: HolochainP2pDnaT + Clone + 'static + Send,