pub struct LoggingExceptionHandler {
pub log_level: Level,
}Expand description
Built-in handler that logs exceptions
Fields§
§log_level: LevelLog level for exceptions
Implementations§
Source§impl LoggingExceptionHandler
impl LoggingExceptionHandler
Sourcepub fn with_level(self, level: Level) -> Self
pub fn with_level(self, level: Level) -> Self
Set log level
Trait Implementations§
Source§impl Default for LoggingExceptionHandler
impl Default for LoggingExceptionHandler
Source§impl ExceptionHandler for LoggingExceptionHandler
impl ExceptionHandler for LoggingExceptionHandler
Source§fn handle(&self, _exception: &TaskException) -> ExceptionAction
fn handle(&self, _exception: &TaskException) -> ExceptionAction
Handle an exception and return the action to take
Source§fn on_exception(&self, exception: &TaskException)
fn on_exception(&self, exception: &TaskException)
Called before the exception is processed
Source§fn transform(&self, exception: TaskException) -> TaskException
fn transform(&self, exception: TaskException) -> TaskException
Transform an exception (e.g., add metadata, modify traceback)
Auto Trait Implementations§
impl Freeze for LoggingExceptionHandler
impl RefUnwindSafe for LoggingExceptionHandler
impl Send for LoggingExceptionHandler
impl Sync for LoggingExceptionHandler
impl Unpin for LoggingExceptionHandler
impl UnwindSafe for LoggingExceptionHandler
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