pub struct LoggingHandler { /* private fields */ }Expand description
A handler that logs an error and continues the chain.
Implementations§
Source§impl LoggingHandler
impl LoggingHandler
Sourcepub fn wrap(inner: BoxHandler) -> BoxHandler
pub fn wrap(inner: BoxHandler) -> BoxHandler
Wraps a handler in a logging layer that catches errors and logs them instead of propagating them, allowing the dispatcher to continue.
Trait Implementations§
Source§impl Handler for LoggingHandler
impl Handler for LoggingHandler
Auto Trait Implementations§
impl Freeze for LoggingHandler
impl !RefUnwindSafe for LoggingHandler
impl Send for LoggingHandler
impl Sync for LoggingHandler
impl Unpin for LoggingHandler
impl UnsafeUnpin for LoggingHandler
impl !UnwindSafe for LoggingHandler
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