pub struct TransportConnectionStats {
pub pub_key: String,
pub send_message_count: u64,
pub send_bytes: u64,
pub recv_message_count: u64,
pub recv_bytes: u64,
pub opened_at_s: u64,
pub is_webrtc: bool,
}Expand description
Stats for a single transport connection.
Fields§
§pub_key: StringThe public key of the remote peer.
send_message_count: u64The message count sent on this connection.
send_bytes: u64The bytes sent on this connection.
recv_message_count: u64The message count received on this connection.
recv_bytes: u64The bytes received on this connection
opened_at_s: u64UNIX epoch timestamp in seconds when this connection was opened.
is_webrtc: boolTrue if this connection has successfully upgraded to webrtc.
Trait Implementations§
Source§impl Clone for TransportConnectionStats
impl Clone for TransportConnectionStats
Source§fn clone(&self) -> TransportConnectionStats
fn clone(&self) -> TransportConnectionStats
Returns a copy 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 TransportConnectionStats
impl Debug for TransportConnectionStats
Source§impl<'de> Deserialize<'de> for TransportConnectionStats
impl<'de> Deserialize<'de> for TransportConnectionStats
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 TransportConnectionStats
impl RefUnwindSafe for TransportConnectionStats
impl Send for TransportConnectionStats
impl Sync for TransportConnectionStats
impl Unpin for TransportConnectionStats
impl UnwindSafe for TransportConnectionStats
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