pub struct Budget {
pub memory: Option<u64>,
pub cpu: Option<u64>,
pub host: Option<u64>,
pub held: bool,
}Expand description
The budgets a plan starts runners within.
Fields§
§memory: Option<u64>The memory left; None for no budget.
cpu: Option<u64>The CPU left, in millicores; None for no budget.
host: Option<u64>The memory the host has to spare for new runners beside other programs (ADR 0055); None when not known.
held: boolNothing starts, so no warm runner stops to make room: measured admission holds the slice at its high-water mark, or the host’s tasks stall for memory.
Trait Implementations§
impl Copy for Budget
impl Eq for Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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.