pub enum TelemetryEvent {
Socket(SocketEvent),
Channel {
topic: String,
event: ChannelEvent,
},
FrameSent {
topic: String,
event: String,
binary: bool,
bytes: usize,
},
FrameReceived {
topic: String,
event: String,
binary: bool,
bytes: usize,
},
ConnectionAttemptFinished {
attempt: u32,
duration: Duration,
connected: bool,
},
CallCompleted {
topic: String,
event: String,
outcome: CallOutcome,
duration: Duration,
},
}Expand description
Structured lifecycle and frame observation emitted by the driver.
Variants§
Socket(SocketEvent)
A socket lifecycle event.
Channel
A channel lifecycle or protocol event.
FrameSent
An encoded frame was sent.
Fields
FrameReceived
An encoded frame was received.
Fields
ConnectionAttemptFinished
A transport connection attempt ended.
Fields
CallCompleted
A channel call reached a terminal outcome.
Trait Implementations§
Source§impl Clone for TelemetryEvent
impl Clone for TelemetryEvent
Source§fn clone(&self) -> TelemetryEvent
fn clone(&self) -> TelemetryEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TelemetryEvent
impl Debug for TelemetryEvent
Source§impl PartialEq for TelemetryEvent
impl PartialEq for TelemetryEvent
Source§fn eq(&self, other: &TelemetryEvent) -> bool
fn eq(&self, other: &TelemetryEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TelemetryEvent
Auto Trait Implementations§
impl Freeze 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