pub enum Outcome {
Ok,
Status(u16),
Skip,
Halt,
}Expand description
What a call tells the engine. v3’s TaskOutcome, unchanged.
Exhaustive on purpose: a host matching on it handles every case, and a fifth would be a new contract, not a minor addition.
Variants§
Ok
Normal completion: the audit trail records status 200, and the
workflow continues.
Status(u16)
Completion with an HTTP-like status, recorded on the audit trail. A
4xx is a rejection and a 5xx a failure, handled by the task’s
on_rejection and
on_failure.
Skip
No audit entry is recorded, and the workflow continues.
Halt
The audit trail records status 299, and the rest of the workflow
does not run. Later workflows still see the message.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.