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.
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Ifv4Addr> for Ifv4Addr
[src]
impl StructuralEq for Ifv4Addr
[src]
impl StructuralPartialEq for Ifv4Addr
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ifv4Addr
impl Send for Ifv4Addr
impl Sync for Ifv4Addr
impl Unpin for Ifv4Addr
impl UnwindSafe for Ifv4Addr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,