Skip to main content

BlockDiffFollow

Trait BlockDiffFollow 

Source
pub trait BlockDiffFollow: Send + Sync {
    // Required method
    fn follow<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        cid: &'life1 Cid,
    ) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;

    // Provided method
    fn follow_previous<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        cid: &'life1 Cid,
    ) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn follow<'life0, 'life1, 'async_trait>( &'life0 mut self, cid: &'life1 Cid, ) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Test if a next Cid should be followed.

Provided Methods§

Source

fn follow_previous<'life0, 'life1, 'async_trait>( &'life0 mut self, cid: &'life1 Cid, ) -> Pin<Box<dyn Future<Output = Result<bool, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Test if a previous Cid should be followed.

Implementors§