#[non_exhaustive]pub enum TelemetryEvent {
Connecting {
host: String,
port: u16,
},
Reconnecting {
previous_generation: i64,
},
Connected {
generation: i64,
},
Authenticated {
generation: i64,
},
CommandStarted {
command: String,
request_id: String,
},
CommandFinished {
command: String,
request_id: String,
duration: Duration,
ok: bool,
},
Timeout {
operation: String,
duration: Duration,
},
Error {
operation: String,
message: String,
},
WorkerRetry {
queue: String,
message: String,
retry_in: Duration,
},
Closed,
}Expand description
Structured lifecycle events emitted by connections and workers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Connecting
Reconnecting
Connected
Authenticated
CommandStarted
CommandFinished
Timeout
Error
WorkerRetry
Closed
Trait Implementations§
Source§impl Clone for TelemetryEvent
impl Clone for TelemetryEvent
Source§impl Debug for TelemetryEvent
impl Debug for TelemetryEvent
Source§impl PartialEq for TelemetryEvent
impl PartialEq for TelemetryEvent
impl StructuralPartialEq for TelemetryEvent
Auto Trait Implementations§
impl Forget for TelemetryEvent
impl Freeze for TelemetryEvent
impl Move for TelemetryEvent
impl RefUnwindSafe for TelemetryEvent
impl Send for TelemetryEvent
impl Sync for TelemetryEvent
impl Unpin for TelemetryEvent
impl UnsafeUnpin for TelemetryEvent
impl UnwindSafe for TelemetryEvent
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