Skip to main content

EventType

Trait EventType 

Source
pub trait EventType: 'static {
    type Handler<S: Subsystem>;
    type Wrapper: Send + Sync + 'static;
}
Expand description

Type of an event.

Required Associated Types§

Source

type Handler<S: Subsystem>

Source

type Wrapper: Send + Sync + 'static

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<A: 'static> EventType for fn(&A)

Source§

type Handler<S: Subsystem> = fn(&Arc<S>, &A)

Source§

type Wrapper = Box<dyn Fn(&A) + Send + Sync>

Source§

impl<A: 'static> EventType for fn(&mut A)

Implementors§