#[non_exhaustive]pub enum PromotionReason {
EmptyBodyLikelyJs,
KnownAntiBot(AntiBotTech),
SelectorMissing {
selector: String,
},
StatusPromoted {
status: u16,
},
Custom(String),
}Expand description
Why an HTTP attempt should be repeated through a browser.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyBodyLikelyJs
A successful HTML document has little visible text but contains JavaScript.
KnownAntiBot(AntiBotTech)
A known anti-bot interstitial was detected.
SelectorMissing
A caller-required selector was absent from the parsed document.
StatusPromoted
An HTTP error status was configured for browser promotion.
Custom(String)
A custom detector-specific explanation.
Trait Implementations§
Source§impl Clone for PromotionReason
impl Clone for PromotionReason
Source§fn clone(&self) -> PromotionReason
fn clone(&self) -> PromotionReason
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 PromotionReason
impl Debug for PromotionReason
Source§impl Display for PromotionReason
impl Display for PromotionReason
Source§impl PartialEq for PromotionReason
impl PartialEq for PromotionReason
impl StructuralPartialEq for PromotionReason
Auto Trait Implementations§
impl Freeze for PromotionReason
impl RefUnwindSafe for PromotionReason
impl Send for PromotionReason
impl Sync for PromotionReason
impl Unpin for PromotionReason
impl UnsafeUnpin for PromotionReason
impl UnwindSafe for PromotionReason
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