pub struct LoggingEventEmitter;Expand description
A logging event emitter that logs events via tracing.
Useful for daemon or CLI usage where events should appear in logs.
Trait Implementations§
Source§impl QueueEventEmitter for LoggingEventEmitter
impl QueueEventEmitter for LoggingEventEmitter
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 LoggingEventEmitter
impl RefUnwindSafe for LoggingEventEmitter
impl Send for LoggingEventEmitter
impl Sync for LoggingEventEmitter
impl Unpin for LoggingEventEmitter
impl UnsafeUnpin for LoggingEventEmitter
impl UnwindSafe for LoggingEventEmitter
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