pub struct NoopEmitter;Expand description
A no-op event emitter for tests and CLI contexts.
This implementation discards all events, making it suitable for:
- Unit tests that don’t need to verify event emission
- CLI applications that don’t have an event listener
- Contexts where event emission is optional
Implementations§
Source§impl NoopEmitter
impl NoopEmitter
Trait Implementations§
Source§impl AppEventEmitter for NoopEmitter
impl AppEventEmitter for NoopEmitter
Source§impl Clone for NoopEmitter
impl Clone for NoopEmitter
Source§fn clone(&self) -> NoopEmitter
fn clone(&self) -> NoopEmitter
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 moreSource§impl Debug for NoopEmitter
impl Debug for NoopEmitter
Source§impl Default for NoopEmitter
impl Default for NoopEmitter
Source§fn default() -> NoopEmitter
fn default() -> NoopEmitter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopEmitter
impl RefUnwindSafe for NoopEmitter
impl Send for NoopEmitter
impl Sync for NoopEmitter
impl Unpin for NoopEmitter
impl UnwindSafe for NoopEmitter
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