pub struct TransportStats {
pub transport_type: String,
pub messages_sent: u64,
pub messages_received: u64,
pub is_connected: bool,
pub last_activity_at: u64,
pub error_count: u64,
}Expand description
Transport statistics
Fields§
§transport_type: StringTransport type
messages_sent: u64Total messages sent
messages_received: u64Total messages received
is_connected: boolConnection status
last_activity_at: u64Last activity timestamp
error_count: u64Error count
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<'de> Deserialize<'de> for TransportStats
impl<'de> Deserialize<'de> for TransportStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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