pub struct ErrorTracker { /* private fields */ }Expand description
Error tracking for monitoring and debugging
Implementations§
Source§impl ErrorTracker
impl ErrorTracker
pub fn new() -> Self
pub async fn track_error(&self, error: &Error)
pub fn total_errors(&self) -> u64
pub async fn errors_by_type(&self) -> FxHashMap<String, u64>
pub async fn reset(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorTracker
impl !RefUnwindSafe for ErrorTracker
impl Send for ErrorTracker
impl Sync for ErrorTracker
impl Unpin for ErrorTracker
impl !UnwindSafe for ErrorTracker
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