Skip to main content

ObserverSystem

Trait ObserverSystem 

Source
pub trait ObserverSystem<E: Event, B: Bundle, Out = ()>:
    System<In = On<'static, 'static, E, B>, Out = Out>
    + Send
    + 'static { }
Expand description

Implemented for Systems that have On as the first argument.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<E: Event, B: Bundle, Out, T> ObserverSystem<E, B, Out> for T
where T: System<In = On<'static, 'static, E, B>, Out = Out> + Send + 'static,