pub enum Decision {
Start {
slot: SlotRef,
repository: String,
memory: u64,
cpu: u64,
warm: bool,
replacing: Vec<SlotRef>,
},
HeldForCpu {
repository: String,
},
Stop {
slot: SlotRef,
},
}Expand description
What plan decides for one slot.
Variants§
Start
Register a runner for the repository and start it in the slot.
Fields
HeldForCpu
Hold the repository’s next job: a slot and memory had room for its runner, the CPU budget did not.
Stop
Remove the slot’s runner: it waited IDLE_TIMEOUT for a job no longer queued and is not kept warm, or it is a
warm runner whose room a queued job takes.
Trait Implementations§
impl Eq for Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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.