Skip to main content

TrustedSharedWorkerAddress

Type Alias TrustedSharedWorkerAddress 

Source
pub(crate) type TrustedSharedWorkerAddress = Trusted<SharedWorker>;

Aliased Type§

pub(crate) struct TrustedSharedWorkerAddress {
    refcount: Arc<TrustedReference>,
    owner_thread: *const LiveDOMReferences,
    phantom: PhantomData<SharedWorker>,
}

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<SharedWorker>