pub struct HeadroomShortfall {
pub run_idx: u32,
pub required_bytes: u64,
pub available_bytes: u64,
pub volume: String,
pub peak_gated: bool,
}Expand description
The numbers behind an HeadroomDecision::Abort, rendered into the
operator-facing error.
Fields§
§run_idx: u32Zero-based index of the run that would have run next.
required_bytes: u64Bytes the guard required to be free before the run.
available_bytes: u64Bytes actually free on the worktree volume.
volume: StringThe volume/path the readings were taken on (for the message).
peak_gated: boolWhether required_bytes came from a measured prior-run peak
(true, run-1..N) or the absolute floor alone (false, run-0).
Drives the message so it never over-claims a peak guarantee for
run-0.
Implementations§
Trait Implementations§
Source§impl Clone for HeadroomShortfall
impl Clone for HeadroomShortfall
Source§fn clone(&self) -> HeadroomShortfall
fn clone(&self) -> HeadroomShortfall
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 moreSource§impl Debug for HeadroomShortfall
impl Debug for HeadroomShortfall
impl Eq for HeadroomShortfall
Source§impl PartialEq for HeadroomShortfall
impl PartialEq for HeadroomShortfall
impl StructuralPartialEq for HeadroomShortfall
Auto Trait Implementations§
impl Freeze for HeadroomShortfall
impl RefUnwindSafe for HeadroomShortfall
impl Send for HeadroomShortfall
impl Sync for HeadroomShortfall
impl Unpin for HeadroomShortfall
impl UnsafeUnpin for HeadroomShortfall
impl UnwindSafe for HeadroomShortfall
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
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
Compare self to
key and return true if they are equal.