yew_agent::prelude

Trait Registrable

Source
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.

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§

Source§

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