Struct yew_state::handler::HandlerBridge[][src]

pub struct HandlerBridge<H, SCOPE = H> where
    H: StateHandler + 'static,
    SCOPE: 'static, 
{ /* fields omitted */ }

A direct bridge to given state handler. Unlike a ServiceBridge bridge, it can only send and receive StateHandler messages.

Implementations

impl<H, SCOPE> HandlerBridge<H, SCOPE> where
    H: StateHandler + 'static, 
[src]

pub fn new(callback: Callback<H::Output>) -> Self[src]

pub fn send(&mut self, msg: H::Input)[src]

Send a message to the state handler.

Auto Trait Implementations

impl<H, SCOPE = H> !RefUnwindSafe for HandlerBridge<H, SCOPE>

impl<H, SCOPE = H> !Send for HandlerBridge<H, SCOPE>

impl<H, SCOPE = H> !Sync for HandlerBridge<H, SCOPE>

impl<H, SCOPE> Unpin for HandlerBridge<H, SCOPE>

impl<H, SCOPE = H> !UnwindSafe for HandlerBridge<H, SCOPE>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.