pub struct ProgressReporter { /* private fields */ }Implementations§
Source§impl ProgressReporter
impl ProgressReporter
pub fn new(logger: Logger, total_steps: usize) -> Self
pub fn start_step(&mut self, step_name: &str)
pub fn complete_step(&mut self, message: Option<&str>)
pub fn fail_step(&mut self, error: &str)
pub fn update_progress(&self, message: &str)
pub fn finish(&self, total_message: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressReporter
impl RefUnwindSafe for ProgressReporter
impl Send for ProgressReporter
impl Sync for ProgressReporter
impl Unpin for ProgressReporter
impl UnwindSafe for ProgressReporter
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