pub enum Ev<E> {
Init,
User(E),
Internal {
event_type: Cow<'static, str>,
data: Map<String, Value>,
},
}Expand description
An event as the interpreter sees it: the initial event, a user event, or
an event that is not part of E (lifecycle events such as
xstate.done.state, and raised events E cannot represent).
Variants§
Implementations§
Trait Implementations§
impl<E: PartialEq> StructuralPartialEq for Ev<E>
Auto Trait Implementations§
impl<E> Forget for Ev<E>
impl<E> Freeze for Ev<E>
impl<E> Move for Ev<E>
impl<E> RefUnwindSafe for Ev<E>
impl<E> Send for Ev<E>
impl<E> Sync for Ev<E>
impl<E> Unpin for Ev<E>
impl<E> UnsafeUnpin for Ev<E>where
E: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl<E> UnwindSafe for Ev<E>where
E: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
NonNull<u8>: UnwindSafe,
RawVecInner: UnwindSafe,
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