pub struct SnapshotStaleRule { /* private fields */ }Expand description
The snapshot is showing retained values, or follows an unexpectedly long gap (§11.2, §7.5).
Two different problems with the same consequence: what is on screen is older than one sample interval. §4 requires a retained value to be shown with its age, and this rule is the summary of that state for the diagnostics panel.
Implementations§
Source§impl SnapshotStaleRule
impl SnapshotStaleRule
Sourcepub const fn new(thresholds: Thresholds) -> Self
pub const fn new(thresholds: Thresholds) -> Self
Builds the rule from sanitized thresholds.
Trait Implementations§
Source§impl Clone for SnapshotStaleRule
impl Clone for SnapshotStaleRule
Source§fn clone(&self) -> SnapshotStaleRule
fn clone(&self) -> SnapshotStaleRule
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 SnapshotStaleRule
Source§impl Debug for SnapshotStaleRule
impl Debug for SnapshotStaleRule
Source§impl DiagnosticRule for SnapshotStaleRule
impl DiagnosticRule for SnapshotStaleRule
Auto Trait Implementations§
impl Freeze for SnapshotStaleRule
impl RefUnwindSafe for SnapshotStaleRule
impl Send for SnapshotStaleRule
impl Sync for SnapshotStaleRule
impl Unpin for SnapshotStaleRule
impl UnsafeUnpin for SnapshotStaleRule
impl UnwindSafe for SnapshotStaleRule
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