[][src]Struct rsys::linux::net::Interface

pub struct Interface {
    pub name: String,
    pub ipv4: String,
    pub stat: IfaceStat,
    pub mtu: u32,
    pub mac_address: String,
    pub speed: u64,
}

Represents a network interface on host os

Fields

name: String

Name of this interface

ipv4: String

IPv4 address of this interface

stat: IfaceStat

Stats of this interface from /proc/net/dev

mtu: u32

Maximum transmission unit

mac_address: Stringspeed: u64

Speed in mb/s

Trait Implementations

impl Clone for Interface[src]

impl Debug for Interface[src]

impl Default for Interface[src]

impl Eq for Interface[src]

impl PartialEq<Interface> for Interface[src]

impl StructuralEq for Interface[src]

impl StructuralPartialEq for Interface[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.