#[non_exhaustive]pub enum TaskExecutionMode {
Foreground,
Background,
Unknown(String),
}Expand description
A task row’s execution mode. Open: clients MUST ignore unknown modes.
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.
Foreground
The task holds the turn (a census counts it; the stop sweep skips it).
Background
The task runs detached (census and sweep both cover it).
Unknown(String)
A mode introduced by a newer server. Preserved verbatim so an older
client keeps the unknown word instead of failing the parse. Not a v1
server-emission value, so it is excluded from the generated known-value
schema while the enum remains declared open (the AdmissionDecision
precedent).
Implementations§
Trait Implementations§
Source§impl Clone for TaskExecutionMode
impl Clone for TaskExecutionMode
Source§impl Debug for TaskExecutionMode
impl Debug for TaskExecutionMode
Source§impl<'de> Deserialize<'de> for TaskExecutionMode
impl<'de> Deserialize<'de> for TaskExecutionMode
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 TaskExecutionMode
Source§impl PartialEq for TaskExecutionMode
impl PartialEq for TaskExecutionMode
Source§impl Serialize for TaskExecutionMode
impl Serialize for TaskExecutionMode
impl StructuralPartialEq for TaskExecutionMode
Auto Trait Implementations§
impl Forget for TaskExecutionMode
impl Freeze for TaskExecutionMode
impl Move for TaskExecutionMode
impl RefUnwindSafe for TaskExecutionMode
impl Send for TaskExecutionMode
impl Sync for TaskExecutionMode
impl Unpin for TaskExecutionMode
impl UnsafeUnpin for TaskExecutionMode
impl UnwindSafe for TaskExecutionMode
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