pub enum NetFamily {
V4,
V6,
}Expand description
The family of an address. IPv4 sorts before IPv6.
Variants§
Implementations§
Trait Implementations§
impl Copy for NetFamily
impl Eq for NetFamily
Source§impl Ord for NetFamily
impl Ord for NetFamily
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for NetFamily
impl PartialOrd for NetFamily
impl StructuralPartialEq for NetFamily
Auto Trait Implementations§
impl Freeze for NetFamily
impl RefUnwindSafe for NetFamily
impl Send for NetFamily
impl Sync for NetFamily
impl Unpin for NetFamily
impl UnsafeUnpin for NetFamily
impl UnwindSafe for NetFamily
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