pub enum ControlFlow {
Skip {
message: String,
},
Fail {
message: String,
},
Break {
message: String,
value: Option<StepOutput>,
},
Next {
message: String,
},
}Expand description
Control flow exceptions (like Roast’s skip!/break!/fail!)
Variants§
Skip
Skip the current step without error
Fail
Fail the step and potentially abort
Break
Exit the current repeat/map loop
Next
Skip to next iteration of repeat/map
Trait Implementations§
Source§impl Debug for ControlFlow
impl Debug for ControlFlow
Source§impl From<ControlFlow> for StepError
impl From<ControlFlow> for StepError
Source§fn from(cf: ControlFlow) -> Self
fn from(cf: ControlFlow) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControlFlow
impl RefUnwindSafe for ControlFlow
impl Send for ControlFlow
impl Sync for ControlFlow
impl Unpin for ControlFlow
impl UnsafeUnpin for ControlFlow
impl UnwindSafe for ControlFlow
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