#[repr(C)]pub struct PamojaTelemetrySnapshot {
pub by_level: [u32; 5],
pub emitted: u32,
pub dropped: u32,
}Expand description
A count of everything a reporter has seen, cheap enough to ship anywhere.
This is what a node sends in place of the event stream when the link cannot carry the detail: the shape of what happened survives even though the individual events did not.
Fields§
§by_level: [u32; 5]How many events were seen at each level, indexed by
PamojaTelemetryLevel.
emitted: u32How many events passed the filter and were shipped.
dropped: u32How many events the filter dropped.
Trait Implementations§
Source§impl Clone for PamojaTelemetrySnapshot
impl Clone for PamojaTelemetrySnapshot
Source§fn clone(&self) -> PamojaTelemetrySnapshot
fn clone(&self) -> PamojaTelemetrySnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaTelemetrySnapshot
Source§impl Debug for PamojaTelemetrySnapshot
impl Debug for PamojaTelemetrySnapshot
impl Eq for PamojaTelemetrySnapshot
Source§impl PartialEq for PamojaTelemetrySnapshot
impl PartialEq for PamojaTelemetrySnapshot
Source§fn eq(&self, other: &PamojaTelemetrySnapshot) -> bool
fn eq(&self, other: &PamojaTelemetrySnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaTelemetrySnapshot
Auto Trait Implementations§
impl Freeze for PamojaTelemetrySnapshot
impl RefUnwindSafe for PamojaTelemetrySnapshot
impl Send for PamojaTelemetrySnapshot
impl Sync for PamojaTelemetrySnapshot
impl Unpin for PamojaTelemetrySnapshot
impl UnsafeUnpin for PamojaTelemetrySnapshot
impl UnwindSafe for PamojaTelemetrySnapshot
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