Enum kaori_hsm::ParentState
source · pub enum ParentState<UserStateMachine: TopState + ?Sized> {
TopReached,
Exists(fn(_: &mut UserStateMachine, _: &CoreEvt<'_, <UserStateMachine as TopState>::Evt>) -> CoreHandleResult<UserStateMachine>),
}
Expand description
Returned by the user-defined State::get_parent_state()
method to either indicate
if the parent of the present state is the top state (TopReached
), or another user-defined
state (Exists
).
Variants§
TopReached
Exists(fn(_: &mut UserStateMachine, _: &CoreEvt<'_, <UserStateMachine as TopState>::Evt>) -> CoreHandleResult<UserStateMachine>)
Auto Trait Implementations§
impl<UserStateMachine: ?Sized> RefUnwindSafe for ParentState<UserStateMachine>
impl<UserStateMachine: ?Sized> Send for ParentState<UserStateMachine>
impl<UserStateMachine: ?Sized> Sync for ParentState<UserStateMachine>
impl<UserStateMachine: ?Sized> Unpin for ParentState<UserStateMachine>
impl<UserStateMachine: ?Sized> UnwindSafe for ParentState<UserStateMachine>
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