pub struct TerminalProgress { /* private fields */ }Implementations§
Source§impl TerminalProgress
impl TerminalProgress
pub fn new(_name: String, _total: usize) -> Self
pub fn update(&mut self, stage: &str, page: Option<usize>)
pub fn update_detail( &mut self, stage: &str, _page: Option<usize>, _detail: Option<&str>, )
pub fn reset(&mut self)
pub fn advance(&mut self, stage: &str, done: usize, total: usize)
Sourcepub fn advance_with_elapsed(
&mut self,
stage: &str,
done: usize,
total: usize,
elapsed: Option<Duration>,
)
pub fn advance_with_elapsed( &mut self, stage: &str, done: usize, total: usize, elapsed: Option<Duration>, )
Production events carry measured stage work; gaps between pages are not work.
pub fn clear(&mut self)
Trait Implementations§
Source§impl Drop for TerminalProgress
impl Drop for TerminalProgress
Auto Trait Implementations§
impl Forget for TerminalProgress
impl Freeze for TerminalProgress
impl RefUnwindSafe for TerminalProgress
impl Send for TerminalProgress
impl Sync for TerminalProgress
impl Unpin for TerminalProgress
impl UnsafeUnpin for TerminalProgress
impl UnwindSafe for TerminalProgress
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