Skip to main content

BrowserPromotionDetector

Trait BrowserPromotionDetector 

Source
pub trait BrowserPromotionDetector:
    Send
    + Sync
    + 'static {
    // Required method
    fn should_promote(
        &self,
        attempt: &HttpAttemptSnapshot<'_>,
    ) -> Option<PromotionReason>;
}
Expand description

Decides whether a successful HTTP/HTML attempt needs browser execution.

Required Methods§

Source

fn should_promote( &self, attempt: &HttpAttemptSnapshot<'_>, ) -> Option<PromotionReason>

Returns the promotion reason, or None when the HTTP result should be kept.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§