pub struct PvCountersSnapshot {
pub events_received: u64,
pub events_stored: u64,
pub first_event_unix_secs: Option<i64>,
pub buffer_overflow_drops: u64,
pub timestamp_drops: u64,
pub type_change_drops: u64,
pub disconnect_count: u64,
pub last_disconnect_unix_secs: Option<i64>,
pub transient_error_count: u64,
pub latest_observed_dbr: Option<i32>,
}Expand description
Read-only snapshot of PvCounters — owned values so callers can
move them across threads / serialise without reaching into Atomics.
Fields§
§events_received: u64§events_stored: u64§first_event_unix_secs: Option<i64>§buffer_overflow_drops: u64§timestamp_drops: u64§type_change_drops: u64§disconnect_count: u64§last_disconnect_unix_secs: Option<i64>§transient_error_count: u64§latest_observed_dbr: Option<i32>Some(dbr_type as i32) if a type-change mismatch has been
observed; None otherwise (Java parity 9f2234f).
Trait Implementations§
Source§impl Clone for PvCountersSnapshot
impl Clone for PvCountersSnapshot
Source§fn clone(&self) -> PvCountersSnapshot
fn clone(&self) -> PvCountersSnapshot
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 PvCountersSnapshot
impl Debug for PvCountersSnapshot
Source§impl From<&PvCounters> for PvCountersSnapshot
impl From<&PvCounters> for PvCountersSnapshot
Source§fn from(c: &PvCounters) -> Self
fn from(c: &PvCounters) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PvCountersSnapshot
impl RefUnwindSafe for PvCountersSnapshot
impl Send for PvCountersSnapshot
impl Sync for PvCountersSnapshot
impl Unpin for PvCountersSnapshot
impl UnsafeUnpin for PvCountersSnapshot
impl UnwindSafe for PvCountersSnapshot
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