pub enum ServiceOutput<H>where
H: StateHandler,{
Service(ServiceResponse<H>),
Handler(H::Output),
}Expand description
Output message from either StateService or StateHandler.
Variants§
Service(ServiceResponse<H>)
Handler(H::Output)
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 ServiceOutput<H>
impl<H> !RefUnwindSafe for ServiceOutput<H>
impl<H> !Send for ServiceOutput<H>
impl<H> !Sync for ServiceOutput<H>
impl<H> Unpin for ServiceOutput<H>
impl<H> !UnwindSafe for ServiceOutput<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