This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.
yew_agent::prelude

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", so this trait is not object safe.

Implementors§

§

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