[][src]Trait yewtil::store::Bridgeable

pub trait Bridgeable: Sized + 'static {
    type Wrapper: Agent;
    fn bridge(
        callback: Callback<<Self::Wrapper as Agent>::Output>
    ) -> Box<dyn Bridge<Self::Wrapper>>; }

Allows us to communicate with a store

Associated Types

type Wrapper: Agent

A wrapper for the store we want to bridge to, which serves as a communication intermediary

Loading content...

Required methods

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

Creates a messaging bridge between a worker and the component.

Loading content...

Implementors

impl<T> Bridgeable for T where
    T: Store
[src]

Implementation of bridge creation

type Wrapper = StoreWrapper<T>

The hiding wrapper

Loading content...