pub enum LiveProgress {
Percent(u32),
Count(u64),
}Expand description
One live progress update from a running node.
Variants§
Percent(u32)
How far through a known amount of work, 0-100.
Count(u64)
Units of work done so far, total unknown.
Implementations§
Source§impl LiveProgress
impl LiveProgress
Sourcepub fn done_and_total(self) -> (u64, Option<u64>)
pub fn done_and_total(self) -> (u64, Option<u64>)
The update as (done, total): a percent is out of 100, a count has
no total.
Trait Implementations§
Source§impl Clone for LiveProgress
impl Clone for LiveProgress
impl Copy for LiveProgress
Source§impl Debug for LiveProgress
impl Debug for LiveProgress
impl Eq for LiveProgress
Source§impl PartialEq for LiveProgress
impl PartialEq for LiveProgress
impl StructuralPartialEq for LiveProgress
Auto Trait Implementations§
impl Freeze for LiveProgress
impl RefUnwindSafe for LiveProgress
impl Send for LiveProgress
impl Sync for LiveProgress
impl Unpin for LiveProgress
impl UnsafeUnpin for LiveProgress
impl UnwindSafe for LiveProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more