Type Alias script::dom::serviceworker::TrustedServiceWorkerAddress

source ·
pub type TrustedServiceWorkerAddress = Trusted<ServiceWorker>;

Aliased Type§

struct TrustedServiceWorkerAddress {
    refcount: Arc<TrustedReference>,
    owner_thread: *const LiveDOMReferences,
    phantom: PhantomData<ServiceWorker>,
}

Fields§

§refcount: Arc<TrustedReference>

A pointer to the Rust DOM object of type T, but void to allow sending Trusted<T> between threads, regardless of T’s sendability.

§owner_thread: *const LiveDOMReferences§phantom: PhantomData<ServiceWorker>