Trait yew_agent::Bridged

source ·
pub trait Bridged: 'static + Worker + Sized {
    fn bridge(
        callback: Rc<dyn Fn(Self::Output) + 'static>
    ) -> Box<dyn Bridge<Self> + 'static, Global>; }
Expand description

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

Required Methods§

Creates a messaging bridge between a worker and the component.

Implementors§