pub struct CounterHandler { /* private fields */ }Expand description
Count errors by type name.
Implementations§
Trait Implementations§
Source§impl Default for CounterHandler
impl Default for CounterHandler
Source§impl ErrorHandler for CounterHandler
impl ErrorHandler for CounterHandler
Source§fn handle(
&self,
name: &str,
_error_msg: &str,
_cycle: u64,
_duration_nanos: u64,
detail: ErrorDetail,
) -> ErrorDetail
fn handle( &self, name: &str, _error_msg: &str, _cycle: u64, _duration_nanos: u64, detail: ErrorDetail, ) -> ErrorDetail
Handle an error, returning a potentially transformed ErrorDetail. Read more
Auto Trait Implementations§
impl !Freeze for CounterHandler
impl RefUnwindSafe for CounterHandler
impl Send for CounterHandler
impl Sync for CounterHandler
impl Unpin for CounterHandler
impl UnsafeUnpin for CounterHandler
impl UnwindSafe for CounterHandler
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