#[non_exhaustive]pub enum InterfaceAddressFamily {
Ipv4,
Ipv6,
}Expand description
IP family of an observed default route.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for InterfaceAddressFamily
impl Clone for InterfaceAddressFamily
impl Copy for InterfaceAddressFamily
Source§impl Debug for InterfaceAddressFamily
impl Debug for InterfaceAddressFamily
impl Eq for InterfaceAddressFamily
Source§impl Ord for InterfaceAddressFamily
impl Ord for InterfaceAddressFamily
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 PartialEq for InterfaceAddressFamily
impl PartialEq for InterfaceAddressFamily
Source§impl PartialOrd for InterfaceAddressFamily
impl PartialOrd for InterfaceAddressFamily
impl StructuralPartialEq for InterfaceAddressFamily
Auto Trait Implementations§
impl Forget for InterfaceAddressFamily
impl Freeze for InterfaceAddressFamily
impl Move for InterfaceAddressFamily
impl RefUnwindSafe for InterfaceAddressFamily
impl Send for InterfaceAddressFamily
impl Sync for InterfaceAddressFamily
impl Unpin for InterfaceAddressFamily
impl UnsafeUnpin for InterfaceAddressFamily
impl UnwindSafe for InterfaceAddressFamily
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