pub struct AutoReporter<'scope, 'reporter> { /* private fields */ }Expand description
Handle controlling one scoped automatic reporter.
Implementations§
Source§impl<'scope, 'reporter> AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> AutoReporter<'scope, 'reporter>
Sourcepub fn notifier(&self) -> ProgressNotifier
pub fn notifier(&self) -> ProgressNotifier
Returns a cloneable worker notification handle.
Sourcepub fn status(&self) -> AutoReporterStatus
pub fn status(&self) -> AutoReporterStatus
Returns a cloneable status view for workers.
Sourcepub fn stop(self) -> Result<(), AutoReporterError>
pub fn stop(self) -> Result<(), AutoReporterError>
Stops, joins and returns the background report result.
A reporter or snapshot error is returned as
AutoReporterError::Emission. A worker panic is captured as
AutoReporterError::Panicked after the worker has been joined.
§Errors
Returns a reporter emission failure or a structured worker panic.
Trait Implementations§
Source§impl Drop for AutoReporter<'_, '_>
impl Drop for AutoReporter<'_, '_>
Auto Trait Implementations§
impl<'scope, 'reporter> !RefUnwindSafe for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> !UnwindSafe for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> Freeze for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> Send for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> Sync for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> Unpin for AutoReporter<'scope, 'reporter>
impl<'scope, 'reporter> UnsafeUnpin for AutoReporter<'scope, 'reporter>
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