DeviceStatus

Struct DeviceStatus 

Source
pub struct DeviceStatus {
Show 17 fields pub interface: String, pub receive_bytes: u64, pub receive_packets: u64, pub receive_errs: u64, pub receive_drop: u64, pub receive_fifo: u64, pub receive_frame: u64, pub receive_compressed: u64, pub receive_multicast: u64, pub transmit_bytes: u64, pub transmit_packets: u64, pub transmit_errs: u64, pub transmit_drop: u64, pub transmit_fifo: u64, pub transmit_colls: u64, pub transmit_carrier: u64, pub transmit_compressed: u64,
}
Expand description

Network device status information.

See man 5 proc and Linux/net/core/net-procfs.c

Fields§

§interface: String

Name of the interface representing this device.

§receive_bytes: u64

Number of received bytes.

§receive_packets: u64

Number of received packets.

§receive_errs: u64

Number of bad packets received.

§receive_drop: u64

Number of incoming packets dropped.

§receive_fifo: u64

Number of incoming packets dropped due to fifo overrun.

§receive_frame: u64

Number of incoming packets dropped due to frame alignment errors.

§receive_compressed: u64

Number of CSLIP packets received.

§receive_multicast: u64

Number of multicast packets received.

§transmit_bytes: u64

Number of transmitted bytes.

§transmit_packets: u64

Number of transmitted packets.

§transmit_errs: u64

Number of occurred transmission problems.

§transmit_drop: u64

Number of outgoing packets dropped.

§transmit_fifo: u64

Number of outgoing packets dropped due to fifo overrun.

§transmit_colls: u64

Number of occurred packet collisions.

§transmit_carrier: u64

Number of occurred carrier errors.

§transmit_compressed: u64

Number of CSLIP packets transmitted.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.