Struct common_types::client_types::ClientReport[][src]

pub struct ClientReport {
    pub blocks_imported: usize,
    pub transactions_applied: usize,
    pub gas_processed: U256,
    pub state_db_mem: usize,
}

Report on the status of a client.

Fields

blocks_imported: usize

How many blocks have been imported so far.

transactions_applied: usize

How many transactions have been applied so far.

gas_processed: U256

How much gas has been processed so far.

state_db_mem: usize

Memory used by state DB

Implementations

impl ClientReport[src]

pub fn accrue_block(&mut self, header: &Header, transactions: usize)[src]

Alter internal reporting to reflect the additional block has been processed.

Trait Implementations

impl Clone for ClientReport[src]

impl Debug for ClientReport[src]

impl Default for ClientReport[src]

impl Eq for ClientReport[src]

impl PartialEq<ClientReport> for ClientReport[src]

impl StructuralEq for ClientReport[src]

impl StructuralPartialEq for ClientReport[src]

impl<'a> Sub<&'a ClientReport> for ClientReport[src]

type Output = Self

The resulting type after applying the - operator.

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

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