pub struct EventEmitter { /* private fields */ }Expand description
Event emitter
Implementations§
Source§impl EventEmitter
impl EventEmitter
Sourcepub fn subscribe_filtered(
&self,
filter: impl Fn(&BoxEvent) -> bool + Send + Sync + 'static,
) -> EventStream
pub fn subscribe_filtered( &self, filter: impl Fn(&BoxEvent) -> bool + Send + Sync + 'static, ) -> EventStream
Subscribe to events with a filter
Trait Implementations§
Source§impl Clone for EventEmitter
impl Clone for EventEmitter
Source§fn clone(&self) -> EventEmitter
fn clone(&self) -> EventEmitter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventEmitter
impl !RefUnwindSafe for EventEmitter
impl Send for EventEmitter
impl Sync for EventEmitter
impl Unpin for EventEmitter
impl UnsafeUnpin for EventEmitter
impl !UnwindSafe for EventEmitter
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