pub struct EventEmitter<H> { /* private fields */ }Expand description
Event emitter for managing typed event handlers.
This provides a thread-safe way to register, invoke, and remove event handlers of a specific type.
Implementations§
Source§impl<H> EventEmitter<H>
impl<H> EventEmitter<H>
Trait Implementations§
Auto Trait Implementations§
impl<H> !Freeze for EventEmitter<H>
impl<H> !RefUnwindSafe for EventEmitter<H>
impl<H> Send for EventEmitter<H>where
H: Send,
impl<H> Sync for EventEmitter<H>
impl<H> Unpin for EventEmitter<H>where
H: Unpin,
impl<H> UnwindSafe for EventEmitter<H>where
H: UnwindSafe,
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