Struct PacketStats
#[repr(C)]pub struct PacketStats {
pub packets_tx: c_ulong,
pub packets_rx: c_ulong,
pub bytes_tx: c_longlong,
pub bytes_rx: c_longlong,
pub packets_dropped_tx: c_ulong,
pub packets_dropped_rx: c_ulong,
}Fields§
§packets_tx: c_ulongNumber of packets transmitted.
packets_rx: c_ulongNumber of packets received.
bytes_tx: c_longlongNumber of bytes transmitted.
bytes_rx: c_longlongNumber of bytes received.
packets_dropped_tx: c_ulongNumber of transmit packets dropped.
packets_dropped_rx: c_ulongNumber of receive packets dropped.
Trait Implementations§
§impl Clone for PacketStats
impl Clone for PacketStats
§fn clone(&self) -> PacketStats
fn clone(&self) -> PacketStats
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 PacketStats
impl RefUnwindSafe for PacketStats
impl Send for PacketStats
impl Sync for PacketStats
impl Unpin for PacketStats
impl UnwindSafe for PacketStats
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