pub struct EventListeners { /* private fields */ }
Expand description
All the currently active listeners
Implementations§
Source§impl EventListeners
impl EventListeners
Sourcepub fn add_listener(&mut self, req: EventListenerRequest)
pub fn add_listener(&mut self, req: EventListenerRequest)
Register a subscription for a method
Sourcepub fn start_send<T: Event>(&mut self, event: T)
pub fn start_send<T: Event>(&mut self, event: T)
Queue in a event that should be send to all listeners
Trait Implementations§
Source§impl Debug for EventListeners
impl Debug for EventListeners
Source§impl Default for EventListeners
impl Default for EventListeners
Source§fn default() -> EventListeners
fn default() -> EventListeners
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventListeners
impl !RefUnwindSafe for EventListeners
impl Send for EventListeners
impl !Sync for EventListeners
impl Unpin for EventListeners
impl !UnwindSafe for EventListeners
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more