pub struct BudgetParts {
pub slots: Vec<SlotPart>,
pub held: Vec<HeldPart>,
pub free: Option<FreePart>,
pub closed: Option<ClosedPart>,
pub whole: u64,
}Expand description
The budget as a bar draws it, from Status::budget_parts.
Fields§
§slots: Vec<SlotPart>A block per slot, in config order: every slot under caps, only those with a runner under measured admission.
held: Vec<HeldPart>The mirror, each seed container, then each shell open in a record.
free: Option<FreePart>What MemoryMax leaves past every block, less what is closed; None without MemoryMax, without room past
the blocks and the closed part, and while no runner starts: the slice is held (Budget::held) or the host
stalls.
closed: Option<ClosedPart>What of the room past every block no runner may start in, drawn after what is free: all of it while the slice
is held or the host stalls, else what the host’s memory holds back (Budget::host_withheld); None while neither closes any.
whole: u64What the blocks are scaled against: MemoryMax, or the blocks’ sum when larger or without it.
Trait Implementations§
Source§impl Clone for BudgetParts
impl Clone for BudgetParts
Source§impl Debug for BudgetParts
impl Debug for BudgetParts
impl Eq for BudgetParts
Source§impl PartialEq for BudgetParts
impl PartialEq for BudgetParts
impl StructuralPartialEq for BudgetParts
Auto Trait Implementations§
impl Freeze for BudgetParts
impl RefUnwindSafe for BudgetParts
impl Send for BudgetParts
impl Sync for BudgetParts
impl Unpin for BudgetParts
impl UnsafeUnpin for BudgetParts
impl UnwindSafe for BudgetParts
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.