pub struct ErrorReporter { /* private fields */ }Expand description
Global error reporter for collecting and analyzing errors
Implementations§
Source§impl ErrorReporter
impl ErrorReporter
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable error reporting
Sourcepub fn report_error(&self, error: EnhancedError)
pub fn report_error(&self, error: EnhancedError)
Report an error
Sourcepub fn get_statistics(&self) -> Option<ErrorStatistics>
pub fn get_statistics(&self) -> Option<ErrorStatistics>
Get error statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorReporter
impl RefUnwindSafe for ErrorReporter
impl Send for ErrorReporter
impl Sync for ErrorReporter
impl Unpin for ErrorReporter
impl UnwindSafe for ErrorReporter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more