pub struct InterstitialContext {
pub signature: PageSignature,
pub policy: InterstitialPolicy,
}Expand description
Interstitial routing context supplied to an
AcquisitionRequest.
Carries the PageSignature observed on a previous
attempt plus the InterstitialPolicy that controls
the router’s behaviour. When the context is set, the
runner evaluates the signature via the
InterstitialRouter
before any stage executes:
- The resulting
RouterDecisionis attached toAcquisitionResult::interstitialregardless of the decision’s kind. - When the decision is non-
TransientandInterstitialPolicy::short_circuit_on_classifiedistrue(the default), the runner short-circuits with a structuredStageFailureKind::InterstitialRoutedfailure tagged with the decision so the calling layer can dispatch the dedicatedInterstitialRoutewithout burning through the generic ladder.
Default-on (no new feature gate). Purely additive on
AcquisitionRequest and AcquisitionResult.
Fields§
§signature: PageSignaturePage signature observed on a previous attempt.
policy: InterstitialPolicyRouting policy (queue interval, challenge solve budget, hard-block escalation, short-circuit toggle).
Implementations§
Source§impl InterstitialContext
impl InterstitialContext
Sourcepub fn new(signature: PageSignature) -> Self
pub fn new(signature: PageSignature) -> Self
Build a context with the default policy.
Sourcepub const fn with_policy(
policy: InterstitialPolicy,
signature: PageSignature,
) -> Self
pub const fn with_policy( policy: InterstitialPolicy, signature: PageSignature, ) -> Self
Build a context with the supplied policy and signature.
Sourcepub const fn with_policy_opt(self, policy: InterstitialPolicy) -> Self
pub const fn with_policy_opt(self, policy: InterstitialPolicy) -> Self
Replace the policy on an existing context.
Trait Implementations§
Source§impl Clone for InterstitialContext
impl Clone for InterstitialContext
Source§fn clone(&self) -> InterstitialContext
fn clone(&self) -> InterstitialContext
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 moreAuto Trait Implementations§
impl Freeze for InterstitialContext
impl RefUnwindSafe for InterstitialContext
impl Send for InterstitialContext
impl Sync for InterstitialContext
impl Unpin for InterstitialContext
impl UnsafeUnpin for InterstitialContext
impl UnwindSafe for InterstitialContext
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