Skip to main content

CustomEvent

Trait CustomEvent 

Source
pub trait CustomEvent: Clone + 'static { }
Expand description

Marker trait implemented by strongly-typed cross-component custom events dispatched through EventBus and #[event]/emit!/on_event!.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CustomEvent for SystemEvent

Marker trait enabling SystemEvent forwarding over EventBus when desired.