pub enum MismatchSeverity {
Advisory,
Hard,
}Expand description
How serious a given mismatch is for downstream routing.
Advisory— recoverable drift (locale / timezone); logged but the request still goes through.Hard— geo / WebRTC divergence that the major anti-bot vendors treat as an immediate block signal.
Variants§
Advisory
Mismatch is logged; the request proceeds.
Hard
Mismatch triggers an immediate block under CoherencePolicy::hard_fail_on.
Implementations§
Source§impl MismatchSeverity
impl MismatchSeverity
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Stable snake_case wire label.
§Example
use stygian_proxy::ports::coherence::MismatchSeverity;
assert_eq!(MismatchSeverity::Advisory.label(), "advisory");
assert_eq!(MismatchSeverity::Hard.label(), "hard");Sourcepub const fn is_hard(self) -> bool
pub const fn is_hard(self) -> bool
true when the variant is MismatchSeverity::Hard.
Trait Implementations§
Source§impl Clone for MismatchSeverity
impl Clone for MismatchSeverity
Source§fn clone(&self) -> MismatchSeverity
fn clone(&self) -> MismatchSeverity
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 MismatchSeverity
Source§impl Debug for MismatchSeverity
impl Debug for MismatchSeverity
Source§impl<'de> Deserialize<'de> for MismatchSeverity
impl<'de> Deserialize<'de> for MismatchSeverity
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 Display for MismatchSeverity
impl Display for MismatchSeverity
impl Eq for MismatchSeverity
Source§impl Hash for MismatchSeverity
impl Hash for MismatchSeverity
Source§impl Ord for MismatchSeverity
impl Ord for MismatchSeverity
Source§fn cmp(&self, other: &MismatchSeverity) -> Ordering
fn cmp(&self, other: &MismatchSeverity) -> 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 MismatchSeverity
impl PartialEq for MismatchSeverity
Source§fn eq(&self, other: &MismatchSeverity) -> bool
fn eq(&self, other: &MismatchSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MismatchSeverity
impl PartialOrd for MismatchSeverity
Source§impl Serialize for MismatchSeverity
impl Serialize for MismatchSeverity
impl StructuralPartialEq for MismatchSeverity
Auto Trait Implementations§
impl Freeze for MismatchSeverity
impl RefUnwindSafe for MismatchSeverity
impl Send for MismatchSeverity
impl Sync for MismatchSeverity
impl Unpin for MismatchSeverity
impl UnsafeUnpin for MismatchSeverity
impl UnwindSafe for MismatchSeverity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.