pub enum CpuGate {
NotSampled,
Measured,
Unmeasured,
}Expand description
What the kill decision may rest on from the CPU side (ADR-0009). Not
sampled at all: the silence-only rule, as ever. Measured: the silence
budget, because “silent and idle” was actually observed. Unmeasured —
sampling is on but the last sample was late, partial, or has not come
yet: the EXTENDED budget, amont.idleTimeout × amont.idleLoadScale,
which is bounded even when the ceiling is off, and never the bare
silence budget, because that would kill on a measurement nobody made.
Variants§
Trait Implementations§
impl Copy for CpuGate
impl Eq for CpuGate
impl StructuralPartialEq for CpuGate
Auto Trait Implementations§
impl Freeze for CpuGate
impl RefUnwindSafe for CpuGate
impl Send for CpuGate
impl Sync for CpuGate
impl Unpin for CpuGate
impl UnsafeUnpin for CpuGate
impl UnwindSafe for CpuGate
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