Enum kaori_hsm::HandleResult
source · pub enum HandleResult<UserStateMachineT: TopState + ?Sized> {
Ignored,
Handled,
Transition(fn(_: &mut UserStateMachineT, _: &CoreEvt<'_, <UserStateMachineT as TopState>::Evt>) -> CoreHandleResult<UserStateMachineT>),
}
Expand description
Returned by the user-defined State::handle()
method to order the state machine to either
ignore the event and dispatch it to the parent state (Ignored
), do nothing special (Handled
),
or trigger a transition to another state (Transition
).
Variants§
Ignored
Handled
Transition(fn(_: &mut UserStateMachineT, _: &CoreEvt<'_, <UserStateMachineT as TopState>::Evt>) -> CoreHandleResult<UserStateMachineT>)
Auto Trait Implementations§
impl<UserStateMachineT: ?Sized> RefUnwindSafe for HandleResult<UserStateMachineT>
impl<UserStateMachineT: ?Sized> Send for HandleResult<UserStateMachineT>
impl<UserStateMachineT: ?Sized> Sync for HandleResult<UserStateMachineT>
impl<UserStateMachineT: ?Sized> Unpin for HandleResult<UserStateMachineT>
impl<UserStateMachineT: ?Sized> UnwindSafe for HandleResult<UserStateMachineT>
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