Trait bevy_ecs::event::Event

source ·
pub trait Event: Send + Sync + 'static { }
Expand description

A type that can be stored in an Events<E> resource You can conveniently access events using the EventReader and EventWriter system parameter.

Events must be thread-safe.

Implementors§

source§

impl<T> Event for Twhere T: Send + Sync + 'static,