pub struct TunnelMetrics {
pub bytes_sent: u64,
pub bytes_received: u64,
pub packets_sent: u64,
pub packets_received: u64,
pub packets_dropped: u64,
pub rtt: Option<Duration>,
pub establishment_time: Duration,
pub last_activity: Instant,
}
Expand description
Statistics and performance metrics for tunnel connections
Fields§
§bytes_sent: u64
Total bytes sent through the tunnel
bytes_received: u64
Total bytes received through the tunnel
packets_sent: u64
Number of packets successfully transmitted
packets_received: u64
Number of packets successfully received
packets_dropped: u64
Number of packets dropped due to errors
rtt: Option<Duration>
Current round-trip time
establishment_time: Duration
Tunnel establishment time
last_activity: Instant
Last activity timestamp
Trait Implementations§
Source§impl Clone for TunnelMetrics
impl Clone for TunnelMetrics
Source§fn clone(&self) -> TunnelMetrics
fn clone(&self) -> TunnelMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TunnelMetrics
impl Debug for TunnelMetrics
Auto Trait Implementations§
impl Freeze for TunnelMetrics
impl RefUnwindSafe for TunnelMetrics
impl Send for TunnelMetrics
impl Sync for TunnelMetrics
impl Unpin for TunnelMetrics
impl UnwindSafe for TunnelMetrics
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