EventHandlerPush

Trait EventHandlerPush 

Source
pub trait EventHandlerPush<S>
where S: Event,
{ // Required method fn push<H>(&mut self, handler: H) where H: EventHandler<S> + 'static; }
Expand description

A collection of EventHandlers

Required Methods§

Source

fn push<H>(&mut self, handler: H)
where H: EventHandler<S> + 'static,

Add a handle to the collection.

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§