#[non_exhaustive]pub enum RunMode {
Normal,
Skip,
ForcePass,
ForceFail,
}Expand description
What the engine does with a step when it reaches it (RunModes).
The engine exchanges this as a string, not a number, so a caller passing an integer is silently setting something else. That is the whole reason this type exists.
use rs_teststand::RunMode;
assert_eq!(RunMode::ForcePass.as_str(), "Pass");
assert_eq!(RunMode::from_value("Skip"), Some(RunMode::Skip));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.
Normal
Run the step and report what happened (RunMode_Normal).
Skip
Do not run the step (RunMode_Skip).
ForcePass
Do not run the step; report it as passed (RunMode_ForcePass).
ForceFail
Do not run the step; report it as failed (RunMode_ForceFail).
Implementations§
Trait Implementations§
impl Copy for RunMode
impl Eq for RunMode
impl StructuralPartialEq for RunMode
Auto Trait Implementations§
impl Freeze for RunMode
impl RefUnwindSafe for RunMode
impl Send for RunMode
impl Sync for RunMode
impl Unpin for RunMode
impl UnsafeUnpin for RunMode
impl UnwindSafe for RunMode
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