#[non_exhaustive]pub enum AutoReporterError {
Emission(EmissionError),
Panicked(WorkerPanic),
}Expand description
Failure returned by crate::AutoReporter::stop.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Emission(EmissionError)
The worker returned a normal emission failure.
Panicked(WorkerPanic)
The worker panicked while reporting.
Trait Implementations§
Source§impl Debug for AutoReporterError
impl Debug for AutoReporterError
Source§impl Display for AutoReporterError
impl Display for AutoReporterError
Source§impl Error for AutoReporterError
impl Error for AutoReporterError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the nested emission failure when present.
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<EmissionError> for AutoReporterError
impl From<EmissionError> for AutoReporterError
Source§fn from(error: EmissionError) -> Self
fn from(error: EmissionError) -> Self
Wraps a normal worker emission failure.
Auto Trait Implementations§
impl !RefUnwindSafe for AutoReporterError
impl !Sync for AutoReporterError
impl !UnwindSafe for AutoReporterError
impl Freeze for AutoReporterError
impl Send for AutoReporterError
impl Unpin for AutoReporterError
impl UnsafeUnpin for AutoReporterError
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