pub struct RawEventStats { /* private fields */ }Expand description
窗口内的原始采集统计。
Implementations§
Source§impl RawEventStats
impl RawEventStats
Sourcepub fn count(&self, kind: RawEventKind) -> u64
pub fn count(&self, kind: RawEventKind) -> u64
返回指定事件类型的计数。
Sourcepub fn summary_fields(&self) -> Vec<(&'static str, u64)>
pub fn summary_fields(&self) -> Vec<(&'static str, u64)>
返回适合日志输出的稳定字段列表。
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
返回适合单行日志输出的非零统计。
Trait Implementations§
Source§impl Clone for RawEventStats
impl Clone for RawEventStats
Source§fn clone(&self) -> RawEventStats
fn clone(&self) -> RawEventStats
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 RawEventStats
impl Debug for RawEventStats
Source§impl Default for RawEventStats
impl Default for RawEventStats
Source§fn default() -> RawEventStats
fn default() -> RawEventStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RawEventStats
impl RefUnwindSafe for RawEventStats
impl Send for RawEventStats
impl Sync for RawEventStats
impl Unpin for RawEventStats
impl UnsafeUnpin for RawEventStats
impl UnwindSafe for RawEventStats
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