pub struct Ifv6Addr {
pub ip: Ipv6Addr,
pub netmask: Ipv6Addr,
pub broadcast: Option<Ipv6Addr>,
}
Expand description
Details about the ipv6 address of an interface on this host.
Fields§
§ip: Ipv6Addr
The IP address of the interface.
netmask: Ipv6Addr
The netmask of the interface.
broadcast: Option<Ipv6Addr>
The broadcast address of the interface.
Implementations§
source§impl Ifv6Addr
impl Ifv6Addr
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 Ifv6Addr
impl PartialEq for Ifv6Addr
impl Eq for Ifv6Addr
impl StructuralEq for Ifv6Addr
impl StructuralPartialEq for Ifv6Addr
Auto Trait Implementations§
impl RefUnwindSafe for Ifv6Addr
impl Send for Ifv6Addr
impl Sync for Ifv6Addr
impl Unpin for Ifv6Addr
impl UnwindSafe for Ifv6Addr
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