pub struct TrackerStatsSnapshot {
pub total_successes: u64,
pub total_failures: u64,
pub consecutive_triggers: u64,
pub rate_triggers: u64,
}Expand description
Immutable snapshot of tracker statistics.
Fields§
§total_successes: u64§total_failures: u64§consecutive_triggers: u64§rate_triggers: u64Implementations§
Source§impl TrackerStatsSnapshot
impl TrackerStatsSnapshot
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Overall error rate.
Sourcepub fn total_events(&self) -> u64
pub fn total_events(&self) -> u64
Total events.
Trait Implementations§
Source§impl Clone for TrackerStatsSnapshot
impl Clone for TrackerStatsSnapshot
Source§fn clone(&self) -> TrackerStatsSnapshot
fn clone(&self) -> TrackerStatsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for TrackerStatsSnapshot
impl RefUnwindSafe for TrackerStatsSnapshot
impl Send for TrackerStatsSnapshot
impl Sync for TrackerStatsSnapshot
impl Unpin for TrackerStatsSnapshot
impl UnsafeUnpin for TrackerStatsSnapshot
impl UnwindSafe for TrackerStatsSnapshot
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