#[non_exhaustive]pub enum ExecutionOutcome<S: State> {
Completed(S),
Interrupted {
state: S,
request: InterruptRequest<S::Update>,
},
}Expand description
Outcome of a graph execution.
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(S)
Graph ran to END — contains final state.
Interrupted
Graph hit an interrupt — contains state at pause point.
Fields
§
state: SState at the moment of interruption.
§
request: InterruptRequest<S::Update>The interrupt request from the node.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for ExecutionOutcome<S>
impl<S> RefUnwindSafe for ExecutionOutcome<S>
impl<S> Send for ExecutionOutcome<S>
impl<S> Sync for ExecutionOutcome<S>
impl<S> Unpin for ExecutionOutcome<S>
impl<S> UnsafeUnpin for ExecutionOutcome<S>
impl<S> UnwindSafe for ExecutionOutcome<S>
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