Enum libp2p_bitswap::BitswapEvent
source · [−]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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more