Struct eventbus::EventBus
[−]
[src]
pub struct EventBus { /* fields omitted */ }
Methods
impl EventBus
[src]
fn new() -> EventBus
fn register<T>(
&'static self,
f: fn(_: &mut T),
priority: i32
) -> EventHandlerId<T> where
T: Event,
&'static self,
f: fn(_: &mut T),
priority: i32
) -> EventHandlerId<T> where
T: Event,
fn unregister<T>(&self, f: EventHandlerId<T>) where
T: Event,
T: Event,
fn post<T>(&self, event: &mut T) -> bool where
T: Event,
T: Event,
Trait Implementations
impl PartialEq for EventBus
[src]
fn eq(&self, __arg_0: &EventBus) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EventBus) -> bool
This method tests for !=
.