Skip to main content
This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Registrable

Trait Registrable 

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§

type Registrar

Registrar Type.

Required Methods§

fn registrar() -> Self::Registrar

Creates a registrar for the current worker.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

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