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