pub struct CheckBudget {
pub admission: AdmissionPolicy,
pub needed: u64,
pub memory_max: Option<u64>,
pub memory_caps: Option<u64>,
}Expand description
What a checked config’s admission rule holds to MemoryMax, from ConfigCheck::budget.
Fields§
§admission: AdmissionPolicyThe admission rule it was checked under.
needed: u64What the rule must fit in MemoryMax, in bytes.
memory_max: Option<u64>The slice’s MemoryMax; None when unlimited or unknown.
memory_caps: Option<u64>Every slot and the mirror at their caps at once, in bytes, when known.
Implementations§
Source§impl CheckBudget
impl CheckBudget
Sourcepub fn needed_label(&self) -> &'static str
pub fn needed_label(&self) -> &'static str
What needed is, as a figure’s label: Memory caps or Largest runner + mirror.
Sourcepub fn remainder(&self) -> Option<Remainder>
pub fn remainder(&self) -> Option<Remainder>
What MemoryMax leaves past needed, or how far needed goes past it. None without MemoryMax.
Sourcepub fn admission_note(&self) -> Option<String>
pub fn admission_note(&self) -> Option<String>
Under measured admission, what that means for the slots: Admission is measured: runners reserve their predicted peaks, and slots only bound how many run at once. Every slot at its cap at once would take 40G.
Trait Implementations§
Source§impl Clone for CheckBudget
impl Clone for CheckBudget
impl Copy for CheckBudget
Source§impl Debug for CheckBudget
impl Debug for CheckBudget
impl Eq for CheckBudget
Source§impl PartialEq for CheckBudget
impl PartialEq for CheckBudget
impl StructuralPartialEq for CheckBudget
Auto Trait Implementations§
impl Freeze for CheckBudget
impl RefUnwindSafe for CheckBudget
impl Send for CheckBudget
impl Sync for CheckBudget
impl Unpin for CheckBudget
impl UnsafeUnpin for CheckBudget
impl UnwindSafe for CheckBudget
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.