pub struct Demand {
pub pool: Pool,
pub job: u64,
pub scarce: Scarce,
}Expand description
A pool’s next job that lacks something scarce, as the plan found it: past the jobs its idle runners take, and those the plan starts a runner for.
Fields§
§pool: PoolThe pool.
job: u64The job’s ID.
scarce: ScarceWhat it lacks.
Trait Implementations§
impl Eq for Demand
impl StructuralPartialEq for Demand
Auto Trait Implementations§
impl Forget for Demand
impl Freeze for Demand
impl Move for Demand
impl RefUnwindSafe for Demand
impl Send for Demand
impl Sync for Demand
impl Unpin for Demand
impl UnsafeUnpin for Demand
impl UnwindSafe for Demand
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.