pub enum AdjustmentKind {
Grow,
Shrink,
NoChange,
}Expand description
The direction of an adaptive adjustment.
Variants§
Grow
The cache should grow (hit rate is too low).
Shrink
The cache should shrink (hit rate is comfortably above target).
NoChange
No change needed (hit rate is within tolerance band).
Trait Implementations§
Source§impl Clone for AdjustmentKind
impl Clone for AdjustmentKind
Source§fn clone(&self) -> AdjustmentKind
fn clone(&self) -> AdjustmentKind
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 AdjustmentKind
Source§impl Debug for AdjustmentKind
impl Debug for AdjustmentKind
impl Eq for AdjustmentKind
Source§impl PartialEq for AdjustmentKind
impl PartialEq for AdjustmentKind
Source§fn eq(&self, other: &AdjustmentKind) -> bool
fn eq(&self, other: &AdjustmentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AdjustmentKind
Auto Trait Implementations§
impl Freeze for AdjustmentKind
impl RefUnwindSafe for AdjustmentKind
impl Send for AdjustmentKind
impl Sync for AdjustmentKind
impl Unpin for AdjustmentKind
impl UnsafeUnpin for AdjustmentKind
impl UnwindSafe for AdjustmentKind
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