[][src]Trait ipfs_embed_core::BitswapSync

pub trait BitswapSync: 'static + Send + Sync {
    pub fn references(
        &self,
        cid: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
    ) -> Box<dyn Iterator<Item = Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> + 'static, Global>;
pub fn contains(
        &self,
        cid: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
    ) -> bool; }

Bitswap sync trait for customizing the syncing behaviour.

Required methods

pub fn references(
    &self,
    cid: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> Box<dyn Iterator<Item = Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> + 'static, Global>
[src]

Returns the list of blocks that need to be synced.

pub fn contains(
    &self,
    cid: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> bool
[src]

Returns if a cid needs to be synced.

Loading content...

Implementors

impl<S: StoreParams, T: Storage<S>> BitswapSync for BitswapStorage<S, T> where
    Ipld: References<S::Codecs>, 
[src]

Loading content...