pub struct Ifv6Addr {
pub ip: Ipv6Addr,
pub netmask: Ipv6Addr,
pub prefixlen: u8,
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.
prefixlen: u8
The CIDR prefix of the interface.
broadcast: Option<Ipv6Addr>
The broadcast address of the interface.
Implementations§
source§impl Ifv6Addr
impl Ifv6Addr
sourcepub const fn is_loopback(&self) -> bool
pub const fn is_loopback(&self) -> bool
Check whether this is a loopback address.
sourcepub const fn is_link_local(&self) -> bool
pub const fn is_link_local(&self) -> bool
Check whether this is a link local address.
Trait Implementations§
impl Eq for Ifv6Addr
impl StructuralPartialEq for Ifv6Addr
Auto Trait Implementations§
impl Freeze for Ifv6Addr
impl RefUnwindSafe for Ifv6Addr
impl Send for Ifv6Addr
impl Sync for Ifv6Addr
impl Unpin for Ifv6Addr
impl UnwindSafe for Ifv6Addr
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)