pub struct ErrorStats {
pub total_errors: u64,
pub errors_by_type: HashMap<String, u64>,
pub error_rate: f32,
pub recent_errors: Vec<ErrorEvent>,
}Expand description
Error statistics
Fields§
§total_errors: u64Total number of errors
errors_by_type: HashMap<String, u64>Errors by type
error_rate: f32Error rate (errors per request)
recent_errors: Vec<ErrorEvent>Recent errors
Trait Implementations§
Source§impl Clone for ErrorStats
impl Clone for ErrorStats
Source§fn clone(&self) -> ErrorStats
fn clone(&self) -> ErrorStats
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 moreSource§impl Debug for ErrorStats
impl Debug for ErrorStats
Source§impl Default for ErrorStats
impl Default for ErrorStats
Source§fn default() -> ErrorStats
fn default() -> ErrorStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErrorStats
impl<'de> Deserialize<'de> for ErrorStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorStats
impl RefUnwindSafe for ErrorStats
impl Send for ErrorStats
impl Sync for ErrorStats
impl Unpin for ErrorStats
impl UnsafeUnpin for ErrorStats
impl UnwindSafe for ErrorStats
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