pub enum ArmLabel {
Ok,
Error,
Wildcard,
Pattern(String),
}Expand description
Which arm of a Branch node a branch edge belongs to.
A case over a workflow primitive’s Result has an Ok(..) arm (the
success continuation) and an Error(..) arm (the compensation / failure
continuation). A case over another subject the walker recurses through
(a decode, a guard) labels each arm by its leading constructor, or
ArmLabel::Wildcard for a _ catch-all.
Variants§
Ok
The Ok(..) arm — the success continuation.
Error
The Error(..) arm — the failure / compensation continuation.
Wildcard
A _ catch-all arm.
Pattern(String)
Any other arm, labelled by its leading pattern constructor.
Trait Implementations§
impl Eq for ArmLabel
Source§impl Ord for ArmLabel
impl Ord for ArmLabel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ArmLabel
impl PartialOrd for ArmLabel
impl StructuralPartialEq for ArmLabel
Auto Trait Implementations§
impl Freeze for ArmLabel
impl RefUnwindSafe for ArmLabel
impl Send for ArmLabel
impl Sync for ArmLabel
impl Unpin for ArmLabel
impl UnsafeUnpin for ArmLabel
impl UnwindSafe for ArmLabel
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.