#[non_exhaustive]pub enum WorkspaceSlotState {
Free,
Reserved,
Assigned,
WipePending,
Quarantined,
}Expand description
A workspace slot’s state (Step 3b-3; 3b-2 never reports a slot).
§Examples
use stratum_node_core::WorkspaceSlotState;
assert_eq!(WorkspaceSlotState::WipePending.as_str(), "wipe_pending");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Free
Unassigned and empty.
Reserved
Reserved at consent, before the runner wrote its marker.
Assigned
Assigned to an owner and generation.
WipePending
The owner’s pod data is purged; the slot waits for a wipe.
Quarantined
A marker or emptiness mismatch; the administrator resolves it.
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceSlotState
impl Clone for WorkspaceSlotState
impl Copy for WorkspaceSlotState
Source§impl Debug for WorkspaceSlotState
impl Debug for WorkspaceSlotState
Source§impl<'de> Deserialize<'de> for WorkspaceSlotState
impl<'de> Deserialize<'de> for WorkspaceSlotState
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorkspaceSlotState
impl Display for WorkspaceSlotState
impl Eq for WorkspaceSlotState
Source§impl FromStr for WorkspaceSlotState
impl FromStr for WorkspaceSlotState
Source§impl Hash for WorkspaceSlotState
impl Hash for WorkspaceSlotState
Source§impl Ord for WorkspaceSlotState
impl Ord for WorkspaceSlotState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorkspaceSlotState
impl PartialEq for WorkspaceSlotState
Source§impl PartialOrd for WorkspaceSlotState
impl PartialOrd for WorkspaceSlotState
Source§impl Serialize for WorkspaceSlotState
impl Serialize for WorkspaceSlotState
impl StructuralPartialEq for WorkspaceSlotState
Auto Trait Implementations§
impl Forget for WorkspaceSlotState
impl Freeze for WorkspaceSlotState
impl Move for WorkspaceSlotState
impl RefUnwindSafe for WorkspaceSlotState
impl Send for WorkspaceSlotState
impl Sync for WorkspaceSlotState
impl Unpin for WorkspaceSlotState
impl UnsafeUnpin for WorkspaceSlotState
impl UnwindSafe for WorkspaceSlotState
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