pub enum ProfilePlan<'plan> {
Next {
change: &'plan SizingChange,
blocked: bool,
},
Held {
hold: &'plan SizingHold,
},
LowerHeld {
hold: &'plan SizingHold,
},
Nothing,
}Expand description
What auto sizing does next with one profile at a given time, from AutoPlan::profile_plan.
Variants§
Next
The next look makes this change, or would once AutoPlan::blocked is fixed.
Fields
change: &'plan SizingChangeThe change.
Held
A recent change holds it from any change until hold.until.
Fields
hold: &'plan SizingHoldThe hold.
LowerHeld
A recent change holds it from a lowering until hold.lowered_after(); a raise may come before.
Fields
hold: &'plan SizingHoldThe hold.
Nothing
Nothing: the advice asks for no change, and no hold is left.
Implementations§
Source§impl ProfilePlan<'_>
impl ProfilePlan<'_>
Sourcepub fn headline(&self, plan: &AutoPlan) -> String
pub fn headline(&self, plan: &AutoPlan) -> String
What it does, as the lead of its line, before until when it has one: Next look, within 5 minutes: memory 9G → 6.75G, slots 2, Once that is fixed: …, No change, No lowering or Nothing to change.
Sourcepub fn reason(&self, sizing: &Sizing, profile: &ProfileSizing) -> String
pub fn reason(&self, sizing: &Sizing, profile: &ProfileSizing) -> String
Why, after when the hold’s change was made for a held profile: the change’s reason, the interval holds it until then, a raise may come before then, or the advice’s line.
Trait Implementations§
Source§impl<'plan> Clone for ProfilePlan<'plan>
impl<'plan> Clone for ProfilePlan<'plan>
impl<'plan> Copy for ProfilePlan<'plan>
Source§impl<'plan> Debug for ProfilePlan<'plan>
impl<'plan> Debug for ProfilePlan<'plan>
impl<'plan> Eq for ProfilePlan<'plan>
Source§impl<'plan> PartialEq for ProfilePlan<'plan>
impl<'plan> PartialEq for ProfilePlan<'plan>
impl<'plan> StructuralPartialEq for ProfilePlan<'plan>
Auto Trait Implementations§
impl<'plan> Freeze for ProfilePlan<'plan>
impl<'plan> RefUnwindSafe for ProfilePlan<'plan>
impl<'plan> Send for ProfilePlan<'plan>
impl<'plan> Sync for ProfilePlan<'plan>
impl<'plan> Unpin for ProfilePlan<'plan>
impl<'plan> UnsafeUnpin for ProfilePlan<'plan>
impl<'plan> UnwindSafe for ProfilePlan<'plan>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.