Enum yew_state::service::ServiceRequest[][src]

pub enum ServiceRequest<H> where
    H: StateHandler
{ Apply(Rc<dyn Fn(&mut H::Model)>), ApplyOnce(Box<dyn FnOnce(&mut H::Model)>), Subscribe, }

Message send to StateService.

Variants

Apply(Rc<dyn Fn(&mut H::Model)>)

Apply a state change.

ApplyOnce(Box<dyn FnOnce(&mut H::Model)>)

Apply a state change once.

Subscribe

Registers the sender to be notified when state changes.

Trait Implementations

impl<H> From<ServiceRequest<H>> for ServiceInput<H> where
    H: StateHandler
[src]

Auto Trait Implementations

impl<H> !RefUnwindSafe for ServiceRequest<H>

impl<H> !Send for ServiceRequest<H>

impl<H> !Sync for ServiceRequest<H>

impl<H> Unpin for ServiceRequest<H>

impl<H> !UnwindSafe for ServiceRequest<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> 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.