Struct ethcore::client::ClientReport
source · [−]pub struct ClientReport {
pub blocks_imported: usize,
pub transactions_applied: usize,
pub gas_processed: U256,
pub item_sizes: BTreeMap<String, usize>,
}
Expand description
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.
item_sizes: BTreeMap<String, usize>
Internal structure item sizes
Implementations
sourceimpl ClientReport
impl ClientReport
sourcepub fn accrue_block(&mut self, header: &Header, transactions: usize)
pub fn accrue_block(&mut self, header: &Header, transactions: usize)
Alter internal reporting to reflect the additional block
has been processed.
Trait Implementations
sourceimpl Clone for ClientReport
impl Clone for ClientReport
sourcefn clone(&self) -> ClientReport
fn clone(&self) -> ClientReport
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClientReport
impl Debug for ClientReport
sourceimpl Default for ClientReport
impl Default for ClientReport
sourcefn default() -> ClientReport
fn default() -> ClientReport
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ClientReport> for ClientReport
impl PartialEq<ClientReport> for ClientReport
sourcefn eq(&self, other: &ClientReport) -> bool
fn eq(&self, other: &ClientReport) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ClientReport) -> bool
fn ne(&self, other: &ClientReport) -> bool
This method tests for !=
.
sourceimpl<'a> Sub<&'a ClientReport> for ClientReport
impl<'a> Sub<&'a ClientReport> for ClientReport
type Output = Self
type Output = Self
The resulting type after applying the -
operator.
sourcefn sub(self, other: &'a ClientReport) -> Self
fn sub(self, other: &'a ClientReport) -> Self
Performs the -
operation. Read more
impl Eq for ClientReport
impl StructuralEq for ClientReport
impl StructuralPartialEq for ClientReport
Auto Trait Implementations
impl RefUnwindSafe for ClientReport
impl Send for ClientReport
impl Sync for ClientReport
impl Unpin for ClientReport
impl UnwindSafe for ClientReport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more