pub struct SwapActivityRule { /* private fields */ }Expand description
Swap being read back or written out (§11.2).
A large but idle swap file is unremarkable; the metric that matters is the rate, which is why this rule ignores swap usage as a trigger and reports it only as supporting evidence.
Confidence is Confidence::Low when only the instantaneous rate supports the
finding, and rises to medium when swap in use also grew across the window —
§11.3 requires a one-sample inference to be marked as one.
Implementations§
Source§impl SwapActivityRule
impl SwapActivityRule
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 SwapActivityRule
impl Clone for SwapActivityRule
Source§fn clone(&self) -> SwapActivityRule
fn clone(&self) -> SwapActivityRule
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 SwapActivityRule
Source§impl Debug for SwapActivityRule
impl Debug for SwapActivityRule
Source§impl DiagnosticRule for SwapActivityRule
impl DiagnosticRule for SwapActivityRule
Auto Trait Implementations§
impl Freeze for SwapActivityRule
impl RefUnwindSafe for SwapActivityRule
impl Send for SwapActivityRule
impl Sync for SwapActivityRule
impl Unpin for SwapActivityRule
impl UnsafeUnpin for SwapActivityRule
impl UnwindSafe for SwapActivityRule
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