pub struct NoopEventEmitter;Expand description
A no-op event emitter that discards all events.
Useful for testing or when you don’t need event notifications.
Trait Implementations§
Source§impl QueueEventEmitter for NoopEventEmitter
impl QueueEventEmitter for NoopEventEmitter
Source§fn emit_job_started(&self, _event: JobStartedEvent)
fn emit_job_started(&self, _event: JobStartedEvent)
Called when a job starts executing.
Source§fn emit_job_completed(&self, _event: JobCompletedEvent)
fn emit_job_completed(&self, _event: JobCompletedEvent)
Called when a job completes successfully.
Source§fn emit_job_failed(&self, _event: JobFailedEvent)
fn emit_job_failed(&self, _event: JobFailedEvent)
Called when a job fails.
Source§fn emit_job_progress(&self, _event: JobProgressEvent)
fn emit_job_progress(&self, _event: JobProgressEvent)
Called when a job reports progress.
Source§fn emit_job_cancelled(&self, _event: JobCancelledEvent)
fn emit_job_cancelled(&self, _event: JobCancelledEvent)
Called when a job is cancelled.
Auto Trait Implementations§
impl Freeze for NoopEventEmitter
impl RefUnwindSafe for NoopEventEmitter
impl Send for NoopEventEmitter
impl Sync for NoopEventEmitter
impl Unpin for NoopEventEmitter
impl UnsafeUnpin for NoopEventEmitter
impl UnwindSafe for NoopEventEmitter
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