Struct yew_state::handler::HandlerLink[][src]

pub struct HandlerLink<H> where
    H: StateHandler
{ /* fields omitted */ }

Implementations

impl<H: StateHandler> HandlerLink<H>[src]

pub fn send_message<T>(&self, msg: T) where
    T: Into<<H as StateHandler>::Message>, 
[src]

pub fn send_input<T>(&self, msg: T) where
    T: Into<<H as StateHandler>::Input>, 
[src]

pub fn respond<T>(&self, who: HandlerId, output: T) where
    T: Into<<H as StateHandler>::Output>, 
[src]

pub fn callback<F, IN, M>(&self, function: F) -> Callback<IN> where
    <H as StateHandler>::Input: 'static,
    <H as StateHandler>::Output: 'static,
    <H as StateHandler>::Message: 'static,
    M: Into<<H as StateHandler>::Message>,
    F: Fn(IN) -> M + 'static, 
[src]

pub fn callback_once<F, IN, M>(&self, function: F) -> Callback<IN> where
    <H as StateHandler>::Input: 'static,
    <H as StateHandler>::Output: 'static,
    <H as StateHandler>::Message: 'static,
    M: Into<<H as StateHandler>::Message>,
    F: FnOnce(IN) -> M + 'static, 
[src]

Trait Implementations

impl<H> Clone for HandlerLink<H> where
    H: StateHandler
[src]

Auto Trait Implementations

impl<H> !RefUnwindSafe for HandlerLink<H>

impl<H> !Send for HandlerLink<H>

impl<H> !Sync for HandlerLink<H>

impl<H> Unpin for HandlerLink<H>

impl<H> !UnwindSafe for HandlerLink<H>

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> CloneAny for T where
    T: Any + Clone

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.