Trait Event

Source
pub trait Event:
    Debug
    + Eq
    + Clone { }
Expand description

Event is a custom marker trait that allows unit-like structs to be used as states in a state machine.

If you are using the sm! macro, then there is no need to interact with this trait.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§