pub enum InterstitialKind {
Queue,
Challenge,
HardBlock,
Transient,
}Expand description
Classification kind for an interstitial page.
One of four shapes the classifier emits. The
InterstitialRouter maps
each kind to a dedicated InterstitialRoute.
Variants§
Queue
“Please wait…” / waiting-room page. Retryable.
Challenge
Vendor-issued challenge (captcha, turnstile, PoW).
HardBlock
Terminal vendor block page.
Transient
Bounded 3xx redirect chain that should be followed before classifying the response.
Implementations§
Source§impl InterstitialKind
impl InterstitialKind
Sourcepub const fn is_queue(self) -> bool
pub const fn is_queue(self) -> bool
true when the kind is Self::Queue.
Sourcepub const fn is_hard_block(self) -> bool
pub const fn is_hard_block(self) -> bool
true when the kind is Self::HardBlock.
Sourcepub const fn is_challenge(self) -> bool
pub const fn is_challenge(self) -> bool
true when the kind is Self::Challenge.
Sourcepub const fn is_transient(self) -> bool
pub const fn is_transient(self) -> bool
true when the kind is Self::Transient.
Trait Implementations§
Source§impl Clone for InterstitialKind
impl Clone for InterstitialKind
Source§fn clone(&self) -> InterstitialKind
fn clone(&self) -> InterstitialKind
Returns a duplicate of the value. Read more
1.0.0 · 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 InterstitialKind
impl Debug for InterstitialKind
Source§impl<'de> Deserialize<'de> for InterstitialKind
impl<'de> Deserialize<'de> for InterstitialKind
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 InterstitialKind
impl Display for InterstitialKind
Source§impl Hash for InterstitialKind
impl Hash for InterstitialKind
Source§impl PartialEq for InterstitialKind
impl PartialEq for InterstitialKind
Source§impl Serialize for InterstitialKind
impl Serialize for InterstitialKind
impl Copy for InterstitialKind
impl Eq for InterstitialKind
impl StructuralPartialEq for InterstitialKind
Auto Trait Implementations§
impl Freeze for InterstitialKind
impl RefUnwindSafe for InterstitialKind
impl Send for InterstitialKind
impl Sync for InterstitialKind
impl Unpin for InterstitialKind
impl UnsafeUnpin for InterstitialKind
impl UnwindSafe for InterstitialKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.