[][src]Struct ipfs::BitswapStats

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)>,
}

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

impl Clone for BitswapStats[src]

impl Debug for BitswapStats[src]

impl Eq for BitswapStats[src]

impl From<(Stats, Vec<PeerId>, Vec<(CidGeneric<Codec, Code>, i32)>)> for BitswapStats[src]

impl PartialEq<BitswapStats> for BitswapStats[src]

impl StructuralEq for BitswapStats[src]

impl StructuralPartialEq for BitswapStats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]