pub struct TransportStats {
pub requests_sent: u64,
pub responses_received: u64,
pub notifications_sent: u64,
pub notifications_received: u64,
pub connection_errors: u64,
pub protocol_errors: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub uptime_ms: u64,
}
Expand description
Transport statistics for monitoring
Fields§
§requests_sent: u64
Number of requests sent
responses_received: u64
Number of responses received
notifications_sent: u64
Number of notifications sent
notifications_received: u64
Number of notifications received
connection_errors: u64
Number of connection errors
protocol_errors: u64
Number of protocol errors
bytes_sent: u64
Total bytes sent
bytes_received: u64
Total bytes received
uptime_ms: u64
Connection uptime in milliseconds
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