pub enum Family {
Ipv4,
Ipv6,
}
Expand description
Represents the type of an IP address
Variants§
Implementations§
source§impl Family
impl Family
sourcepub const fn unspecified_address(&self) -> IpAddr
pub const fn unspecified_address(&self) -> IpAddr
The “unspecified” address (all zero) of the given family
sourcepub const fn loopback_address(&self) -> IpAddr
pub const fn loopback_address(&self) -> IpAddr
The “loopback” address (127.0.0.1
or ::1
) of the given family
Trait Implementations§
source§impl Ord for Family
impl Ord for Family
source§impl PartialOrd for Family
impl PartialOrd for Family
impl Eq for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnwindSafe for Family
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§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
)