pub struct ErrorStatistics {
pub total_errors: usize,
pub recoverable_errors: usize,
pub permanent_errors: usize,
pub error_type_counts: HashMap<String, usize>,
pub tool_error_counts: HashMap<String, usize>,
pub server_error_counts: HashMap<String, usize>,
}Expand description
Error statistics
Fields§
§total_errors: usize§recoverable_errors: usize§permanent_errors: usize§error_type_counts: HashMap<String, usize>§tool_error_counts: HashMap<String, usize>§server_error_counts: HashMap<String, usize>Implementations§
Source§impl ErrorStatistics
impl ErrorStatistics
Sourcepub fn most_common_error_type(&self) -> Option<(String, usize)>
pub fn most_common_error_type(&self) -> Option<(String, usize)>
Gets the most common error type
Sourcepub fn most_problematic_tool(&self) -> Option<(String, usize)>
pub fn most_problematic_tool(&self) -> Option<(String, usize)>
Gets the most problematic tool
Sourcepub fn most_problematic_server(&self) -> Option<(String, usize)>
pub fn most_problematic_server(&self) -> Option<(String, usize)>
Gets the most problematic server
Sourcepub fn recovery_rate(&self) -> f64
pub fn recovery_rate(&self) -> f64
Gets the error recovery rate
Trait Implementations§
Source§impl Clone for ErrorStatistics
impl Clone for ErrorStatistics
Source§fn clone(&self) -> ErrorStatistics
fn clone(&self) -> ErrorStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ErrorStatistics
impl RefUnwindSafe for ErrorStatistics
impl Send for ErrorStatistics
impl Sync for ErrorStatistics
impl Unpin for ErrorStatistics
impl UnwindSafe for ErrorStatistics
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