pub enum ServiceInput<H>where
H: StateHandler,{
Service(ServiceRequest<H>),
Handler(H::Input),
}Expand description
Input message for either StateService or StateHandler.
Variants§
Service(ServiceRequest<H>)
Handler(H::Input)
Trait Implementations§
Source§impl<H> From<ServiceRequest<H>> for ServiceInput<H>where
H: StateHandler,
impl<H> From<ServiceRequest<H>> for ServiceInput<H>where
H: StateHandler,
Source§fn from(msg: ServiceRequest<H>) -> Self
fn from(msg: ServiceRequest<H>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<H> Freeze for ServiceInput<H>
impl<H> !RefUnwindSafe for ServiceInput<H>
impl<H> !Send for ServiceInput<H>
impl<H> !Sync for ServiceInput<H>
impl<H> Unpin for ServiceInput<H>
impl<H> !UnwindSafe for ServiceInput<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