pub struct TunnelStats {
pub state: TunnelState,
pub bytes_sent: u64,
pub bytes_received: u64,
pub loss_rate: f64,
pub keepalive_rtt: Option<Duration>,
pub reconnect_count: u64,
pub dns_intercepted: u64,
pub dns_blocked: u64,
pub obfuscation_overhead: f64,
pub uptime: Duration,
pub mtu: u16,
}Expand description
Statistics snapshot from the tunnel.
Fields§
§state: TunnelStateCurrent tunnel state.
bytes_sent: u64Total bytes sent through the tunnel.
bytes_received: u64Total bytes received through the tunnel.
loss_rate: f64Current packet loss rate (0.0–1.0).
keepalive_rtt: Option<Duration>Average RTT measured by keepalive pings.
reconnect_count: u64Number of reconnections since tunnel started.
dns_intercepted: u64Number of DNS queries intercepted.
dns_blocked: u64Number of DNS queries blocked.
obfuscation_overhead: f64Obfuscation overhead ratio.
uptime: DurationHow long the tunnel has been running.
mtu: u16Current MTU in use.
Trait Implementations§
Source§impl Clone for TunnelStats
impl Clone for TunnelStats
Source§fn clone(&self) -> TunnelStats
fn clone(&self) -> TunnelStats
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 moreAuto Trait Implementations§
impl Freeze for TunnelStats
impl RefUnwindSafe for TunnelStats
impl Send for TunnelStats
impl Sync for TunnelStats
impl Unpin for TunnelStats
impl UnsafeUnpin for TunnelStats
impl UnwindSafe for TunnelStats
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