pub trait Registrable {
    type Registrar;

    // Required method
    fn registrar() -> Self::Registrar;
}
Expand description

A trait to enable public workers being registered in a web worker.

Required Associated Types§

source

type Registrar

Registrar Type.

Required Methods§

source

fn registrar() -> Self::Registrar

Creates a registrar for the current worker.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<W> Registrable for W
where W: Worker + 'static,