[][src]Struct ipfs_bitswap::Stats

pub struct Stats {
    pub sent_blocks: AtomicU64,
    pub sent_data: AtomicU64,
    pub received_blocks: AtomicU64,
    pub received_data: AtomicU64,
    pub duplicate_blocks: AtomicU64,
    pub duplicate_data: AtomicU64,
}

Bitswap statistics.

Fields

sent_blocks: AtomicU64sent_data: AtomicU64received_blocks: AtomicU64received_data: AtomicU64duplicate_blocks: AtomicU64duplicate_data: AtomicU64

Implementations

impl Stats[src]

pub fn update_outgoing(&self, num_blocks: u64)[src]

pub fn update_incoming_unique(&self, bytes: u64)[src]

pub fn update_incoming_duplicate(&self, bytes: u64)[src]

pub fn add_assign(&self, other: &Stats)[src]

Trait Implementations

impl Debug for Stats[src]

impl Default for Stats[src]

Auto Trait Implementations

impl RefUnwindSafe for Stats

impl Send for Stats

impl Sync for Stats

impl Unpin for Stats

impl UnwindSafe for Stats

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