Enum nispor::AddressFamily
source · pub enum AddressFamily {
IPv4,
IPv6,
Other(u8),
Unknown,
}
Variants§
Trait Implementations§
source§impl Clone for AddressFamily
impl Clone for AddressFamily
source§fn clone(&self) -> AddressFamily
fn clone(&self) -> AddressFamily
Returns a copy 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 Default for AddressFamily
impl Default for AddressFamily
source§fn default() -> AddressFamily
fn default() -> AddressFamily
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AddressFamily
impl<'de> Deserialize<'de> for AddressFamily
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<AddressFamily> for AddressFamily
impl From<AddressFamily> for AddressFamily
source§fn from(d: AddressFamily) -> Self
fn from(d: AddressFamily) -> Self
Converts to this type from the input type.
source§impl From<AddressFamily> for AddressFamily
impl From<AddressFamily> for AddressFamily
source§fn from(v: AddressFamily) -> Self
fn from(v: AddressFamily) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddressFamily
impl PartialEq for AddressFamily
source§fn eq(&self, other: &AddressFamily) -> bool
fn eq(&self, other: &AddressFamily) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AddressFamily
impl Serialize 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