yew_stdweb::agent

Trait Bridged

Source
pub trait Bridged:
    Agent
    + Sized
    + 'static {
    // Required method
    fn bridge(callback: Callback<Self::Output>) -> Box<dyn Bridge<Self>>;
}
Expand description

This trait allows registering or getting the address of a worker.

Required Methods§

Source

fn bridge(callback: Callback<Self::Output>) -> Box<dyn Bridge<Self>>

Creates a messaging bridge between a worker and the component.

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<T> Bridged for T
where T: Agent, <T as Agent>::Reach: Discoverer<Agent = T>,