Struct deno_runtime::web_worker::WebWorkerInternalHandle
source ·
[−]pub struct WebWorkerInternalHandle {
pub port: Rc<MessagePort>,
pub cancel: Rc<CancelHandle>,
pub worker_type: WebWorkerType,
// some fields omitted
}
Fields
port: Rc<MessagePort>
cancel: Rc<CancelHandle>
worker_type: WebWorkerType
Implementations
Post WorkerEvent to parent as a worker
Check if this worker is terminated or being terminated
Check if this worker must terminate (because the termination signal is
set), and terminates it if so. Returns whether the worker is terminated or
being terminated, as with Self::is_terminated()
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for WebWorkerInternalHandle
impl !Send for WebWorkerInternalHandle
impl !Sync for WebWorkerInternalHandle
impl Unpin for WebWorkerInternalHandle
impl !UnwindSafe for WebWorkerInternalHandle
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more