pub enum TerminalState {
Completed {
result: Value,
},
Failed {
error: String,
},
Cancelled,
}Expand description
Terminal execution state. Only Completed, Failed, or Cancelled.
Variants§
Trait Implementations§
Source§impl Debug for TerminalState
impl Debug for TerminalState
Source§impl TryFrom<ExecutionState> for TerminalState
impl TryFrom<ExecutionState> for TerminalState
Source§type Error = TransitionError
type Error = TransitionError
The type returned in the event of a conversion error.
Source§fn try_from(state: ExecutionState) -> Result<Self, TransitionError>
fn try_from(state: ExecutionState) -> Result<Self, TransitionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TerminalState
impl RefUnwindSafe for TerminalState
impl Send for TerminalState
impl Sync for TerminalState
impl Unpin for TerminalState
impl UnsafeUnpin for TerminalState
impl UnwindSafe for TerminalState
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