[−][src]Trait libp2p_bitswap::BitswapSync
Bitswap sync trait for customizing the syncing behaviour.
Required methods
pub fn references(&self, cid: &Cid) -> Box<dyn Iterator<Item = Cid>>
[src]
Returns the list of blocks that need to be synced.
pub fn contains(&self, cid: &Cid) -> bool
[src]
Returns if a cid needs to be synced.