pub enum HookFailurePolicy {
FailOpenObserveOnly,
Deny,
InterruptRun,
FailRun,
}Expand description
Enumerates the finite hook failure policy cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
FailOpenObserveOnly
Use this variant when the contract needs to represent fail open observe only; selecting it has no side effect by itself.
Deny
Use this variant when the contract needs to represent deny; selecting it has no side effect by itself.
InterruptRun
Use this variant when the contract needs to represent interrupt run; selecting it has no side effect by itself.
FailRun
Use this variant when the contract needs to represent fail run; selecting it has no side effect by itself.
Implementations§
Source§impl HookFailurePolicy
impl HookFailurePolicy
Sourcepub fn fails_closed(&self) -> bool
pub fn fails_closed(&self) -> bool
Returns an updated package::hooks value with fails closed applied. This is data construction only and does not execute the configured behavior.
Trait Implementations§
Source§impl Clone for HookFailurePolicy
impl Clone for HookFailurePolicy
Source§fn clone(&self) -> HookFailurePolicy
fn clone(&self) -> HookFailurePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookFailurePolicy
impl Debug for HookFailurePolicy
Source§impl<'de> Deserialize<'de> for HookFailurePolicy
impl<'de> Deserialize<'de> for HookFailurePolicy
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 Hash for HookFailurePolicy
impl Hash for HookFailurePolicy
Source§impl Ord for HookFailurePolicy
impl Ord for HookFailurePolicy
Source§fn cmp(&self, other: &HookFailurePolicy) -> Ordering
fn cmp(&self, other: &HookFailurePolicy) -> Ordering
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
Source§impl PartialEq for HookFailurePolicy
impl PartialEq for HookFailurePolicy
Source§fn eq(&self, other: &HookFailurePolicy) -> bool
fn eq(&self, other: &HookFailurePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for HookFailurePolicy
impl PartialOrd for HookFailurePolicy
Source§impl Serialize for HookFailurePolicy
impl Serialize for HookFailurePolicy
impl Eq for HookFailurePolicy
impl StructuralPartialEq for HookFailurePolicy
Auto Trait Implementations§
impl Freeze for HookFailurePolicy
impl RefUnwindSafe for HookFailurePolicy
impl Send for HookFailurePolicy
impl Sync for HookFailurePolicy
impl Unpin for HookFailurePolicy
impl UnsafeUnpin for HookFailurePolicy
impl UnwindSafe for HookFailurePolicy
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