Enum get_if_addrs::IfAddr [−][src]
Details about the address of an interface on this host
Variants
V4(Ifv4Addr)
This is an Ipv4 interface.
V6(Ifv6Addr)
This is an Ipv6 interface.
Methods
impl IfAddr
[src]
impl IfAddr
pub fn is_loopback(&self) -> bool
[src]
pub fn is_loopback(&self) -> bool
Check whether this is a loopback address.
pub fn ip(&self) -> IpAddr
[src]
pub fn ip(&self) -> IpAddr
Get the IP address of this interface address.
Trait Implementations
impl Debug for IfAddr
[src]
impl Debug for IfAddr
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 IfAddr
[src]
impl PartialEq for IfAddr
fn eq(&self, other: &IfAddr) -> bool
[src]
fn eq(&self, other: &IfAddr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &IfAddr) -> bool
[src]
fn ne(&self, other: &IfAddr) -> bool
This method tests for !=
.
impl Eq for IfAddr
[src]
impl Eq for IfAddr
impl Hash for IfAddr
[src]
impl Hash for IfAddr
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 IfAddr
[src]
impl Clone for IfAddr