pub struct LoggingHandler { /* private fields */ }Expand description
A handler that logs any error from the wrapped handler and swallows it.
Implementations§
Source§impl LoggingHandler
impl LoggingHandler
Sourcepub fn wrap(inner: BoxHandler) -> BoxHandler
pub fn wrap(inner: BoxHandler) -> BoxHandler
Wraps a handler so its errors are logged with the update ID and then
discarded, leaving the outer result Ok.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoggingHandler
impl !UnwindSafe for LoggingHandler
impl Freeze for LoggingHandler
impl Send for LoggingHandler
impl Sync for LoggingHandler
impl Unpin for LoggingHandler
impl UnsafeUnpin 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