pub struct TraceStats {
pub total_entries: usize,
pub by_level: HashMap<TraceLevel, usize>,
pub by_category: HashMap<String, usize>,
pub buffer_size: usize,
pub buffer_full: bool,
}Expand description
TRACE 统计信息
Fields§
§total_entries: usize总记录数
by_level: HashMap<TraceLevel, usize>按级别统计
by_category: HashMap<String, usize>按类别统计
buffer_size: usize缓冲区大小
buffer_full: bool是否已满(最旧的记录被丢弃)
Trait Implementations§
Source§impl Clone for TraceStats
impl Clone for TraceStats
Source§fn clone(&self) -> TraceStats
fn clone(&self) -> TraceStats
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 TraceStats
impl Debug for TraceStats
Source§impl Default for TraceStats
impl Default for TraceStats
Source§fn default() -> TraceStats
fn default() -> TraceStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceStats
impl RefUnwindSafe for TraceStats
impl Send for TraceStats
impl Sync for TraceStats
impl Unpin for TraceStats
impl UnwindSafe for TraceStats
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