pub enum GuardrailAction {
Demote,
Alarm,
}Expand description
What a breached guardrail does.
Variants§
Demote
Revert the route to observe. Traffic is served exactly as it would be without Firstpass.
Alarm
Emit the event and change nothing — for operators who want a human in the loop.
Trait Implementations§
Source§impl Clone for GuardrailAction
impl Clone for GuardrailAction
Source§fn clone(&self) -> GuardrailAction
fn clone(&self) -> GuardrailAction
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 moreimpl Copy for GuardrailAction
Source§impl Debug for GuardrailAction
impl Debug for GuardrailAction
Source§impl Default for GuardrailAction
impl Default for GuardrailAction
Source§fn default() -> GuardrailAction
fn default() -> GuardrailAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GuardrailAction
impl<'de> Deserialize<'de> for GuardrailAction
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
impl Eq for GuardrailAction
Source§impl PartialEq for GuardrailAction
impl PartialEq for GuardrailAction
impl StructuralPartialEq for GuardrailAction
Auto Trait Implementations§
impl Freeze for GuardrailAction
impl RefUnwindSafe for GuardrailAction
impl Send for GuardrailAction
impl Sync for GuardrailAction
impl Unpin for GuardrailAction
impl UnsafeUnpin for GuardrailAction
impl UnwindSafe for GuardrailAction
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