pub struct ScaleDownReport {
pub removed: u16,
pub refused_busy: u16,
pub clean_failures: u16,
pub retained: u16,
pub attempts_unreadable: bool,
}Expand description
What one scale-down request did.
Fields§
§removed: u16Terminal attempts whose runtime was removed.
refused_busy: u16Attempts executing a job. Removed nothing, left busy.
clean_failures: u16Terminal attempts whose runtime could not be removed.
retained: u16Live attempts that are not yet busy. Also removed nothing: capacity is reclaimed only when an attempt reaches a terminal state.
attempts_unreadable: boolThe host’s attempt set could not be read, so every other field here is meaningless rather than zero.
This is the same distinction ReconcileReport::attempts_unreadable
draws, and it is here for the same reason: a default
ScaleDownReport and a scale-down that could not see the machine are
both all-zeros, and they mean opposite things — “there was nothing to
reclaim” against “we do not know what there was”. Check
Self::is_conclusive before reading a zero as an answer.
Implementations§
Source§impl ScaleDownReport
impl ScaleDownReport
Sourcepub const fn is_conclusive(&self) -> bool
pub const fn is_conclusive(&self) -> bool
Whether the counts here describe the machine at all.
false means the attempt set could not be read, so every zero is
“unknown” rather than “none”.
Trait Implementations§
Source§impl Clone for ScaleDownReport
impl Clone for ScaleDownReport
Source§fn clone(&self) -> ScaleDownReport
fn clone(&self) -> ScaleDownReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScaleDownReport
Source§impl Debug for ScaleDownReport
impl Debug for ScaleDownReport
Source§impl Default for ScaleDownReport
impl Default for ScaleDownReport
Source§fn default() -> ScaleDownReport
fn default() -> ScaleDownReport
impl Eq for ScaleDownReport
Source§impl PartialEq for ScaleDownReport
impl PartialEq for ScaleDownReport
impl StructuralPartialEq for ScaleDownReport
Auto Trait Implementations§
impl Freeze for ScaleDownReport
impl RefUnwindSafe for ScaleDownReport
impl Send for ScaleDownReport
impl Sync for ScaleDownReport
impl Unpin for ScaleDownReport
impl UnsafeUnpin for ScaleDownReport
impl UnwindSafe for ScaleDownReport
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.