pub enum ServiceResponse<H>where
H: StateHandler,{
State(Rc<H::Model>),
Link(HandlerLink<H>),
}Expand description
Message sent to StateService subscribers.
Variants§
State(Rc<H::Model>)
Current state, sent every time state changes.
Link(HandlerLink<H>)
Link to state handler. Sent once on subscribe.
Trait Implementations§
Source§impl<H> From<ServiceResponse<H>> for ServiceOutput<H>where
H: StateHandler,
impl<H> From<ServiceResponse<H>> for ServiceOutput<H>where
H: StateHandler,
Source§fn from(msg: ServiceResponse<H>) -> Self
fn from(msg: ServiceResponse<H>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<H> Freeze for ServiceResponse<H>
impl<H> !RefUnwindSafe for ServiceResponse<H>
impl<H> !Send for ServiceResponse<H>
impl<H> !Sync for ServiceResponse<H>
impl<H> Unpin for ServiceResponse<H>
impl<H> !UnwindSafe for ServiceResponse<H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more