#[non_exhaustive]pub enum FailOn {
Never,
AnyFailure,
PctGreaterThan,
}Expand description
Exit code policy for handling failures.
Marked #[non_exhaustive] so adding new policies is not a breaking change.
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.
Never
Never exit with error code (always return 0).
AnyFailure
Exit with error if any URL failed.
PctGreaterThan
Exit with error if failure percentage exceeds threshold (pct>).
Trait Implementations§
impl Eq for FailOn
impl StructuralPartialEq for FailOn
Auto Trait Implementations§
impl Freeze for FailOn
impl RefUnwindSafe for FailOn
impl Send for FailOn
impl Sync for FailOn
impl Unpin for FailOn
impl UnsafeUnpin for FailOn
impl UnwindSafe for FailOn
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