#[non_exhaustive]pub enum TurnTerminal {
Completed,
Failed,
Cancelled,
Unknown(String),
}Expand description
Turn terminal vocabulary: exactly the runtime’s RunTerminalKind — closed
in the runtime, wire-open for evolution.
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.
Completed
The run finished normally.
Failed
The run ended in a run-fatal error; error is present.
Cancelled
The terminal for the interrupt, cancel, and host-shutdown lanes.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for TurnTerminal
impl Clone for TurnTerminal
Source§impl Debug for TurnTerminal
impl Debug for TurnTerminal
Source§impl<'de> Deserialize<'de> for TurnTerminal
impl<'de> Deserialize<'de> for TurnTerminal
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 TurnTerminal
Source§impl PartialEq for TurnTerminal
impl PartialEq for TurnTerminal
Source§impl Serialize for TurnTerminal
impl Serialize for TurnTerminal
impl StructuralPartialEq for TurnTerminal
Auto Trait Implementations§
impl Freeze for TurnTerminal
impl RefUnwindSafe for TurnTerminal
impl Send for TurnTerminal
impl Sync for TurnTerminal
impl Unpin for TurnTerminal
impl UnsafeUnpin for TurnTerminal
impl UnwindSafe for TurnTerminal
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