Struct ethcore::snapshot::Progress
[−]
[src]
pub struct Progress { /* fields omitted */ }
A progress indicator for snapshots.
Methods
impl Progress
[src]
impl Progress
pub fn reset(&self)
[src]
pub fn reset(&self)
Reset the progress.
pub fn accounts(&self) -> usize
[src]
pub fn accounts(&self) -> usize
Get the number of accounts snapshotted thus far.
pub fn blocks(&self) -> usize
[src]
pub fn blocks(&self) -> usize
Get the number of blocks snapshotted thus far.
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
Get the written size of the snapshot in bytes.
pub fn done(&self) -> bool
[src]
pub fn done(&self) -> bool
Whether the snapshot is complete.
Trait Implementations
impl Debug for Progress
[src]
impl Debug for Progress
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Progress
[src]
impl Default for Progress