pub enum ViolationAction {
Block,
BlockAndLog,
BlockAndTerminate,
Passthrough(Vec<HostPattern>),
}Expand description
Action when a secret placeholder is detected going to a disallowed host.
Variants§
Block
Block the request silently.
BlockAndLog
Block and log (default).
BlockAndTerminate
Block and terminate the sandbox.
Passthrough(Vec<HostPattern>)
Forward the request with the placeholder unchanged for matching hosts.
Trait Implementations§
Source§impl Clone for ViolationAction
impl Clone for ViolationAction
Source§fn clone(&self) -> ViolationAction
fn clone(&self) -> ViolationAction
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 ViolationAction
impl Debug for ViolationAction
Source§impl Default for ViolationAction
impl Default for ViolationAction
Source§fn default() -> ViolationAction
fn default() -> ViolationAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ViolationAction
impl<'de> Deserialize<'de> for ViolationAction
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 From<ViolationAction> for ViolationActionBuilder
impl From<ViolationAction> for ViolationActionBuilder
Source§fn from(action: ViolationAction) -> Self
fn from(action: ViolationAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ViolationAction
impl PartialEq for ViolationAction
Source§fn eq(&self, other: &ViolationAction) -> bool
fn eq(&self, other: &ViolationAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ViolationAction
impl Serialize for ViolationAction
impl Eq for ViolationAction
impl StructuralPartialEq for ViolationAction
Auto Trait Implementations§
impl Freeze for ViolationAction
impl RefUnwindSafe for ViolationAction
impl Send for ViolationAction
impl Sync for ViolationAction
impl Unpin for ViolationAction
impl UnsafeUnpin for ViolationAction
impl UnwindSafe for ViolationAction
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.