pub enum SlotOutcome {
NotDue {
last_maintained: String,
},
InUse {
session: SessionToken,
},
Unavailable {
holder: String,
},
Broken {
reason: String,
},
Ran {
outcome: MaintenanceOutcome,
duration_ms: u64,
log: Option<ArtifactId>,
disk: Option<SlotDisk>,
},
}Expand description
What became of one slot.
Externally tagged in kebab case, the way IdentityOutcome is.
Variants§
NotDue
Maintained inside the caller’s older_than, so not run.
InUse
An open session record names it, so not run.
Fields
session: SessionTokenThe session working in it.
Something else has it right now: a live claim this run did not write, an occupancy it could not take, or a process working inside it.
A healthy slot that is busy, and a later run finds it clear — which is what
separates it from SlotOutcome::Broken, so a consumer reads breakage off
the variant rather than off a reason it has to parse.
Broken
It could not be claimed because its clone, worktree or record is not usable — nothing waiting clears.
Ran
The command ran in it, and how that ended.
Fields
outcome: MaintenanceOutcomeHow the command ended.
log: Option<ArtifactId>Everything it wrote, stored as one artifact — None where storing it
failed, which is warned about on stderr.
Trait Implementations§
Source§impl Clone for SlotOutcome
impl Clone for SlotOutcome
Source§impl Debug for SlotOutcome
impl Debug for SlotOutcome
Source§impl<'de> Deserialize<'de> for SlotOutcome
impl<'de> Deserialize<'de> for SlotOutcome
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>,
impl Eq for SlotOutcome
Source§impl PartialEq for SlotOutcome
impl PartialEq for SlotOutcome
Source§impl Serialize for SlotOutcome
impl Serialize for SlotOutcome
impl StructuralPartialEq for SlotOutcome
Auto Trait Implementations§
impl Freeze for SlotOutcome
impl RefUnwindSafe for SlotOutcome
impl Send for SlotOutcome
impl Sync for SlotOutcome
impl Unpin for SlotOutcome
impl UnsafeUnpin for SlotOutcome
impl UnwindSafe for SlotOutcome
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
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
key and return true if they are equal.