pub struct ProgressContext { /* private fields */ }Expand description
Progress context for tracking multiple operations
Implementations§
Source§impl ProgressContext
impl ProgressContext
Sourcepub fn new(reporter: Arc<dyn ProgressReporter>, enabled: bool) -> Self
pub fn new(reporter: Arc<dyn ProgressReporter>, enabled: bool) -> Self
Create a new progress context
Sourcepub fn reporter(&self) -> &Arc<dyn ProgressReporter>
pub fn reporter(&self) -> &Arc<dyn ProgressReporter>
Get the progress reporter
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if progress reporting is enabled
Auto Trait Implementations§
impl Freeze for ProgressContext
impl !RefUnwindSafe for ProgressContext
impl Send for ProgressContext
impl Sync for ProgressContext
impl Unpin for ProgressContext
impl !UnwindSafe for ProgressContext
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