pub(crate) type TrustedWorkerAddress = Trusted<Worker>;
Aliased Type§
struct TrustedWorkerAddress {
refcount: Arc<TrustedReference>,
owner_thread: *const LiveDOMReferences,
phantom: PhantomData<Worker>,
}
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<Worker>
Implementations
Trait Implementations
Source§impl<T> MallocSizeOf for Trusted<T>where
T: MallocSizeOf + DomObject,
impl<T> MallocSizeOf for Trusted<T>where
T: MallocSizeOf + DomObject,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.