pub struct Short {
pub job: u64,
pub scarce: Scarce,
pub held: Held,
pub memory: u64,
pub cpu: u64,
}Expand description
A job a plan held for something scarce, with a free slot for its runner.
Fields§
§job: u64Its ID.
scarce: ScarceWhat it lacks first: memory before CPU, as Waiting says it.
held: HeldWhether the host holds it.
memory: u64What its runner takes of the memory budget.
cpu: u64What its runner takes of the CPU budget, in millicores.
Trait Implementations§
impl Copy for Short
impl Eq for Short
impl StructuralPartialEq for Short
Auto Trait Implementations§
impl Forget for Short
impl Freeze for Short
impl RefUnwindSafe for Short
impl Send for Short
impl Sync for Short
impl Unpin for Short
impl UnsafeUnpin for Short
impl UnwindSafe for Short
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.