Struct rust_ipfs::BitswapStats
source · pub struct BitswapStats {
pub blocks_sent: u64,
pub data_sent: u64,
pub blocks_received: u64,
pub data_received: u64,
pub dup_blks_received: u64,
pub dup_data_received: u64,
pub peers: Vec<PeerId>,
pub wantlist: Vec<(Cid, Priority)>,
}
Expand description
Bitswap statistics
Fields§
§blocks_sent: u64
The number of IPFS blocks sent to other peers
data_sent: u64
The number of bytes sent in IPFS blocks to other peers
blocks_received: u64
The number of IPFS blocks received from other peers
data_received: u64
The number of bytes received in IPFS blocks from other peers
dup_blks_received: u64
Duplicate blocks received (the block had already been received previously)
dup_data_received: u64
The number of bytes in duplicate blocks received
peers: Vec<PeerId>
The current peers
wantlist: Vec<(Cid, Priority)>
The wantlist of the local node
Trait Implementations§
source§impl Clone for BitswapStats
impl Clone for BitswapStats
source§fn clone(&self) -> BitswapStats
fn clone(&self) -> BitswapStats
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BitswapStats
impl Debug for BitswapStats
source§impl PartialEq<BitswapStats> for BitswapStats
impl PartialEq<BitswapStats> for BitswapStats
source§fn eq(&self, other: &BitswapStats) -> bool
fn eq(&self, other: &BitswapStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BitswapStats
impl StructuralEq for BitswapStats
impl StructuralPartialEq for BitswapStats
Auto Trait Implementations§
impl RefUnwindSafe for BitswapStats
impl Send for BitswapStats
impl Sync for BitswapStats
impl Unpin for BitswapStats
impl UnwindSafe for BitswapStats
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.