Enum libp2p_bitswap::BitswapEvent [−][src]
Expand description
Event emitted by the bitswap behaviour.
Variants
Progress(QueryId, usize)
Received a block from a peer. Includes the number of known missing blocks for a sync query. When a block is received and missing blocks is not empty the counter is increased. If missing blocks is empty the counter is decremented.
Complete(QueryId, Result<()>)
A get or sync query completed.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BitswapEvent
impl Send for BitswapEvent
impl Sync for BitswapEvent
impl Unpin for BitswapEvent
impl !UnwindSafe for BitswapEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
