#[non_exhaustive]pub enum ErrorStrategy {
Fail,
FailBranch,
DefaultValue {
values: IndexMap<String, Value>,
},
}Expand description
What happens when a node fails after exhausting retries.
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.
Fail
Fail the frame (and the run, unless a container handles it).
FailBranch
Route through outgoing edges whose handle is crate::graph::FAIL_BRANCH;
outputs are error_message and error_type.
DefaultValue
Continue normally with these outputs, plus error_message and error_type.
Trait Implementations§
Source§impl Clone for ErrorStrategy
impl Clone for ErrorStrategy
Source§impl Debug for ErrorStrategy
impl Debug for ErrorStrategy
Source§impl Default for ErrorStrategy
impl Default for ErrorStrategy
Source§impl<'de> Deserialize<'de> for ErrorStrategy
impl<'de> Deserialize<'de> for ErrorStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorStrategy
impl PartialEq for ErrorStrategy
Source§impl Serialize for ErrorStrategy
impl Serialize for ErrorStrategy
impl StructuralPartialEq for ErrorStrategy
Auto Trait Implementations§
impl Forget for ErrorStrategy
impl Freeze for ErrorStrategy
impl Move for ErrorStrategy
impl RefUnwindSafe for ErrorStrategy
impl Send for ErrorStrategy
impl Sync for ErrorStrategy
impl Unpin for ErrorStrategy
impl UnsafeUnpin for ErrorStrategy
impl UnwindSafe for ErrorStrategy
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