[−][src]Trait ipfs_embed_core::BitswapSync
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]
&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>
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]
&self,
cid: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> bool
Returns if a cid needs to be synced.
Implementors
impl<S: StoreParams, T: Storage<S>> BitswapSync for BitswapStorage<S, T> where
Ipld: References<S::Codecs>,
[src]
Ipld: References<S::Codecs>,