pub struct TunnelStats {
pub tx_packets: u64,
pub rx_packets: u64,
pub tx_bytes: u64,
pub rx_bytes: u64,
pub tx_errors: u64,
pub rx_errors: u64,
}Expand description
Statistics for a tunnel interface
Fields§
§tx_packets: u64Total packets transmitted
rx_packets: u64Total packets received
tx_bytes: u64Total bytes transmitted
rx_bytes: u64Total bytes received
tx_errors: u64Transmit errors (e.g., MTU exceeded, queue full)
rx_errors: u64Receive errors
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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TunnelStats
impl Debug for TunnelStats
Source§impl Default for TunnelStats
impl Default for TunnelStats
Source§fn default() -> TunnelStats
fn default() -> TunnelStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for TunnelStats
impl PartialEq for TunnelStats
impl Copy for TunnelStats
impl Eq for TunnelStats
impl StructuralPartialEq for TunnelStats
Auto Trait Implementations§
impl Freeze for TunnelStats
impl RefUnwindSafe for TunnelStats
impl Send for TunnelStats
impl Sync for TunnelStats
impl Unpin for TunnelStats
impl UnwindSafe for TunnelStats
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)