#[non_exhaustive]pub enum HookOnFailure {
Continue,
Block,
Other(String),
}Expand description
A hook’s onFailure.
Docs: hook.command.onFailure.
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.
Continue
The action goes ahead.
Block
The action is blocked.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for HookOnFailure
impl AsRef<str> for HookOnFailure
Source§impl Clone for HookOnFailure
impl Clone for HookOnFailure
Source§impl Debug for HookOnFailure
impl Debug for HookOnFailure
Source§impl<'de> Deserialize<'de> for HookOnFailure
impl<'de> Deserialize<'de> for HookOnFailure
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HookOnFailure
impl Display for HookOnFailure
impl Eq for HookOnFailure
Source§impl From<&str> for HookOnFailure
impl From<&str> for HookOnFailure
Source§impl From<String> for HookOnFailure
impl From<String> for HookOnFailure
Source§impl Hash for HookOnFailure
impl Hash for HookOnFailure
Source§impl Ord for HookOnFailure
impl Ord for HookOnFailure
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HookOnFailure
impl PartialEq for HookOnFailure
Source§impl PartialOrd for HookOnFailure
impl PartialOrd for HookOnFailure
Source§impl Serialize for HookOnFailure
impl Serialize for HookOnFailure
impl StructuralPartialEq for HookOnFailure
Auto Trait Implementations§
impl Forget for HookOnFailure
impl Freeze for HookOnFailure
impl Move for HookOnFailure
impl RefUnwindSafe for HookOnFailure
impl Send for HookOnFailure
impl Sync for HookOnFailure
impl Unpin for HookOnFailure
impl UnsafeUnpin for HookOnFailure
impl UnwindSafe for HookOnFailure
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