pub struct ServiceWorkerRegistrationTracking {
pub registration_id: ServiceWorkerRegistrationId,
pub state: ServiceWorkerRegistrationState,
pub fetch_intercept_active: bool,
pub registering_page_url: String,
pub has_fetch_handler: bool,
}Expand description
The state of a ServiceWorker registration as tracked by bao_browser.
This struct represents the bao-side view of a ServiceWorker registration. The actual DOM ServiceWorkerRegistration lives in servo; this struct tracks the state that bao needs for lifecycle management, stealth consistency, and CDP observability.
@trace REQ-BRW-004 [entity:ServiceWorker] DF-WK-8
Fields§
§registration_id: ServiceWorkerRegistrationIdThe registration ID (script_url + scope). @trace REQ-BRW-004 [entity:ServiceWorker] DF-WK-8
state: ServiceWorkerRegistrationStateCurrent lifecycle state of the registration. @trace REQ-BRW-004 [entity:ServiceWorker] DF-WK-8
fetch_intercept_active: boolWhether fetch interception is active for this registration. @trace REQ-BRW-004 [entity:ServiceWorker] [criterion:19]
registering_page_url: StringThe URL of the page that registered this ServiceWorker. Used for stealth profile inheritance (DF-WK-10). @trace REQ-BRW-004 [entity:ServiceWorker] DF-WK-10
has_fetch_handler: boolWhether the onfetch event handler is registered in the ServiceWorker. Tracked for CDP observability. @trace REQ-BRW-004 [entity:ServiceWorker]
Trait Implementations§
Source§impl Clone for ServiceWorkerRegistrationTracking
impl Clone for ServiceWorkerRegistrationTracking
Source§fn clone(&self) -> ServiceWorkerRegistrationTracking
fn clone(&self) -> ServiceWorkerRegistrationTracking
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceWorkerRegistrationTracking
impl RefUnwindSafe for ServiceWorkerRegistrationTracking
impl Send for ServiceWorkerRegistrationTracking
impl Sync for ServiceWorkerRegistrationTracking
impl Unpin for ServiceWorkerRegistrationTracking
impl UnsafeUnpin for ServiceWorkerRegistrationTracking
impl UnwindSafe for ServiceWorkerRegistrationTracking
Blanket Implementations§
Source§impl<T> AsCtxPtr for Twhere
T: ?Sized,
impl<T> AsCtxPtr for Twhere
T: ?Sized,
Source§fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
self’s address as *mut Self for deferred-task / scopeguard /
ref_guard ctx slots. The closures/trampolines deref it as shared
(&*p) — every method they reach is &self post-R-2, so no write
provenance is required; the *mut spelling is purely to match the
existing DerefOnDrop / HasAutoFlush / RefCount ABI.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more