#[non_exhaustive]pub enum Decision {
Value {
value: Value,
node: String,
token: Token,
wake_at: Option<i64>,
},
Ask {
name: String,
payload: Value,
node: String,
token: Token,
},
Ignored,
Error {
error: RunError,
token: Option<Token>,
},
}Expand description
How a run ended.
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.
Value
The instance is parked at node, with a value for the host.
Fields
Ask
The flow needs the host to do something: run the ask, then resume the
token with a result or a failure.
Fields
Ignored
The run reached ignore; nothing changed. Keep the token you had.
Error
The run failed. Nothing was performed; fix the data or the flow and
retry with token, or start again when it is None.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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