pub struct Ifv4Addr {
pub ip: Ipv4Addr,
pub netmask: Ipv4Addr,
pub broadcast: Option<Ipv4Addr>,
}
Expand description
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§
source§impl Ifv4Addr
impl Ifv4Addr
sourcepub fn is_loopback(&self) -> bool
pub fn is_loopback(&self) -> bool
Check whether this is a loopback address.
sourcepub fn is_link_local(&self) -> bool
pub fn is_link_local(&self) -> bool
Check whether this is a link local address.
Trait Implementations§
source§impl PartialEq for Ifv4Addr
impl PartialEq for Ifv4Addr
impl Eq for Ifv4Addr
impl StructuralEq for Ifv4Addr
impl StructuralPartialEq for Ifv4Addr
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more