pub struct ErrorMetrics {
pub total: usize,
pub by_category: HashMap<String, usize>,
pub parse_variants: HashMap<String, usize>,
}Expand description
错误日志记录器
Fields§
§total: usize总错误数
by_category: HashMap<String, usize>按分类统计
parse_variants: HashMap<String, usize>解析错误的细分(变体)统计
Trait Implementations§
Source§impl Debug for ErrorMetrics
impl Debug for ErrorMetrics
Source§impl Default for ErrorMetrics
impl Default for ErrorMetrics
Source§fn default() -> ErrorMetrics
fn default() -> ErrorMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ErrorMetrics
impl RefUnwindSafe for ErrorMetrics
impl Send for ErrorMetrics
impl Sync for ErrorMetrics
impl Unpin for ErrorMetrics
impl UnsafeUnpin for ErrorMetrics
impl UnwindSafe for ErrorMetrics
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more