[][src]Struct netifs::Interface

pub struct Interface {
    pub name: String,
    pub display_name: String,
    pub ip_addresses: Vec<IpNetwork>,
    pub mac_address: Option<MacAddress>,
    pub is_loopback: bool,
    pub is_up: bool,
}

Represents a network interface.

Fields

name: Stringdisplay_name: Stringip_addresses: Vec<IpNetwork>mac_address: Option<MacAddress>is_loopback: boolis_up: bool

Implementations

impl Interface[src]

pub fn new(name: String) -> Self[src]

Create a new interface with the given name.

Trait Implementations

impl Clone for Interface[src]

impl Debug 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.