pub struct Snapshot {
pub by_level: [u32; 5],
pub emitted: u32,
pub dropped: u32,
}Expand description
A point-in-time summary of a reporter’s counters.
This is what a node ships periodically in place of the raw event stream: a few integers that capture how many events occurred at each level and how many were shipped versus dropped, cheap to send even on a metered link.
Fields§
§by_level: [u32; 5]§emitted: u32How many events passed the filter and were shipped.
dropped: u32How many events were dropped by the filter.
Trait Implementations§
impl Copy for Snapshot
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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