pub struct TransportStats {
pub events_sent: u64,
pub events_succeeded: u64,
pub events_failed: u64,
pub bytes_sent: u64,
pub total_latency_ms: u64,
pub retries: u64,
pub connections: u64,
pub connection_errors: u64,
}Expand description
Transport statistics.
Fields§
§events_sent: u64Total events sent.
events_succeeded: u64Successful sends.
events_failed: u64Failed sends.
bytes_sent: u64Bytes sent.
total_latency_ms: u64Total latency in milliseconds.
retries: u64Number of retries.
connections: u64Number of connections made.
connection_errors: u64Number of connection errors.
Implementations§
Source§impl TransportStats
impl TransportStats
Sourcepub fn average_latency_ms(&self) -> f64
pub fn average_latency_ms(&self) -> f64
Calculate average latency.
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Calculate success rate.
Trait Implementations§
Source§impl Clone for TransportStats
impl Clone for TransportStats
Source§fn clone(&self) -> TransportStats
fn clone(&self) -> TransportStats
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 TransportStats
impl Debug for TransportStats
Source§impl Default for TransportStats
impl Default for TransportStats
Source§fn default() -> TransportStats
fn default() -> TransportStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransportStats
impl RefUnwindSafe for TransportStats
impl Send for TransportStats
impl Sync for TransportStats
impl Unpin for TransportStats
impl UnwindSafe for TransportStats
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