Skip to main content

EventCreator

Trait EventCreator 

Source
pub trait EventCreator {
    // Required methods
    fn get_event_type(&self) -> Cow<'static, str>;
    fn create_callback(&self) -> Box<dyn FnMut(&Event)>;
}

Required Methods§

Source

fn get_event_type(&self) -> Cow<'static, str>

Source

fn create_callback(&self) -> Box<dyn FnMut(&Event)>

Trait Implementations§

Source§

impl Debug for dyn EventCreator

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for dyn EventCreator

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§