pub enum SlotState {
Idle,
Reseeding,
Starting {
repository: String,
},
Warm {
repository: String,
},
Running {
repository: String,
},
}Expand description
What a slot is doing, from Status::slot_state.
Variants§
Idle
No runner, and nothing to do.
Reseeding
No runner: slot 1’s layers become the profile’s snapshot.
Starting
A runner started for a queued job and waits for GitHub to hand it one.
Warm
A warm runner: no queued job waits for it; it takes the next one GitHub hands out.
Running
Its runner runs a job.
Implementations§
Source§impl SlotState
impl SlotState
Sourcepub fn of_runner(runner: &RunnerStatus) -> SlotState
pub fn of_runner(runner: &RunnerStatus) -> SlotState
What a slot holding runner is doing: running its job, warm for its repository, or starting.
Sourcepub fn word(&self) -> &'static str
pub fn word(&self) -> &'static str
One word for it, as a table column says it: idle, reseeding, starting, warm or running.
Sourcepub fn line(&self) -> String
pub fn line(&self) -> String
What it does, as a sentence’s tail: idle, reseeding the snapshot, a runner for o/app waiting for its job, a warm runner for o/app, waiting for a job or running a job of o/app.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Whether a runner runs a job in it.
Trait Implementations§
impl Eq for SlotState
impl StructuralPartialEq for SlotState
Auto Trait Implementations§
impl Freeze for SlotState
impl RefUnwindSafe for SlotState
impl Send for SlotState
impl Sync for SlotState
impl Unpin for SlotState
impl UnsafeUnpin for SlotState
impl UnwindSafe for SlotState
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.