pub enum SlotState {
Idle,
InUse {
session: SessionToken,
},
Maintaining {
pid: u32,
since: String,
},
Broken {
reason: String,
},
}Expand description
Where one slot is in its life, as pool status reports it.
Variants§
Idle
No open session names it and no live maintenance claims it: the next session may take it.
InUse
An open session record names it as its run root.
Fields
§
session: SessionTokenThe session working in it.
Maintaining
A maintenance run whose process is still running claims it.
Fields
Broken
Its clone or worktree is missing or not a repository, or its record is unreadable. The next session that would take it recreates it in place.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlotState
impl<'de> Deserialize<'de> for SlotState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.