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 PartialEq<Family> for Family
impl PartialEq<Family> for Family
source§impl PartialOrd<Family> for Family
impl PartialOrd<Family> for Family
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Family
impl StructuralEq for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
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