Struct procinfo::net::dev::DeviceStatus[][src]

pub struct DeviceStatus {
    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,
}
[]

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

impl RefUnwindSafe for DeviceStatus

impl Send for DeviceStatus

impl Sync for DeviceStatus

impl Unpin for DeviceStatus

impl UnwindSafe for DeviceStatus

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

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

The type returned in the event of a conversion error.