[][src]Struct if_addrs::Ifv4Addr

pub struct Ifv4Addr {
    pub ip: Ipv4Addr,
    pub netmask: Ipv4Addr,
    pub broadcast: Option<Ipv4Addr>,
}

Details about the ipv4 address of an interface on this host.

Fields

ip: Ipv4Addr

The IP address of the interface.

netmask: Ipv4Addr

The netmask of the interface.

broadcast: Option<Ipv4Addr>

The broadcast address of the interface.

Implementations

impl Ifv4Addr[src]

pub fn is_loopback(&self) -> bool[src]

Check whether this is a loopback address.

Trait Implementations

impl Clone for Ifv4Addr[src]

impl Debug for Ifv4Addr[src]

impl Eq for Ifv4Addr[src]

impl Hash for Ifv4Addr[src]

impl PartialEq<Ifv4Addr> for Ifv4Addr[src]

impl StructuralEq for Ifv4Addr[src]

impl StructuralPartialEq for Ifv4Addr[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.