pub enum IfAddr {
V4(Ifv4Addr),
V6(Ifv6Addr),
}
Expand description
Details about the address of an interface on this host.
Variants§
Implementations§
source§impl IfAddr
impl IfAddr
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 interface.
Trait Implementations§
impl Eq for IfAddr
impl StructuralPartialEq for IfAddr
Auto Trait Implementations§
impl Freeze for IfAddr
impl RefUnwindSafe for IfAddr
impl Send for IfAddr
impl Sync for IfAddr
impl Unpin for IfAddr
impl UnwindSafe for IfAddr
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
)