#[non_exhaustive]pub enum AddressFamily {
Invalid,
Ipv4,
Ipv6,
}
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 AddressFamily
impl Clone for AddressFamily
Source§fn clone(&self) -> AddressFamily
fn clone(&self) -> AddressFamily
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AddressFamily
impl Debug for AddressFamily
Source§impl Display for AddressFamily
impl Display for AddressFamily
Source§impl<'a> FromValue<'a> for AddressFamily
impl<'a> FromValue<'a> for AddressFamily
Source§type Checker = GenericValueTypeChecker<AddressFamily>
type Checker = GenericValueTypeChecker<AddressFamily>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl Hash for AddressFamily
impl Hash for AddressFamily
Source§impl Ord for AddressFamily
impl Ord for AddressFamily
Source§fn cmp(&self, other: &AddressFamily) -> Ordering
fn cmp(&self, other: &AddressFamily) -> Ordering
1.21.0 · 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
Source§impl PartialEq for AddressFamily
impl PartialEq for AddressFamily
Source§impl PartialOrd for AddressFamily
impl PartialOrd for AddressFamily
Source§impl StaticType for AddressFamily
impl StaticType for AddressFamily
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for AddressFamily
impl ToValue for AddressFamily
Source§impl ValueType for AddressFamily
impl ValueType for AddressFamily
Source§type Type = AddressFamily
type Type = AddressFamily
Type to get the
Type
from. Read moreimpl Copy for AddressFamily
impl Eq for AddressFamily
impl StructuralPartialEq for AddressFamily
Auto Trait Implementations§
impl Freeze for AddressFamily
impl RefUnwindSafe for AddressFamily
impl Send for AddressFamily
impl Sync for AddressFamily
impl Unpin for AddressFamily
impl UnwindSafe for AddressFamily
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.