pub enum HookType<T: AsRef<str>, S: FSMState> {
Before(T),
After(T),
Leave(S),
Enter(S),
Custom(&'static str),
BeforeEvent,
AfterEvent,
LeaveState,
EnterState,
}Expand description
HookType represents the type of event.
Variants§
Before(T)
After(T)
Leave(S)
Enter(S)
Custom(&'static str)
BeforeEvent
AfterEvent
LeaveState
EnterState
Trait Implementations§
impl<T: Eq + AsRef<str>, S: Eq + FSMState> Eq for HookType<T, S>
impl<T: AsRef<str>, S: FSMState> StructuralPartialEq for HookType<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for HookType<T, S>
impl<T, S> RefUnwindSafe for HookType<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for HookType<T, S>
impl<T, S> Sync for HookType<T, S>
impl<T, S> Unpin for HookType<T, S>
impl<T, S> UnwindSafe for HookType<T, S>where
T: UnwindSafe,
S: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)