Struct get_if_addrs::Ifv4Addr
[−]
[src]
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.
Methods
impl Ifv4Addr
[src]
fn is_loopback(&self) -> bool
[src]
Check whether this is a loopback address.
Trait Implementations
impl Debug for Ifv4Addr
[src]
impl PartialEq for Ifv4Addr
[src]
fn eq(&self, __arg_0: &Ifv4Addr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ifv4Addr) -> bool
[src]
This method tests for !=
.
impl Eq for Ifv4Addr
[src]
impl Hash for Ifv4Addr
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more