#[repr(u8)]pub enum AddressType {
IPv4 = 0,
IPv6 = 1,
Domain = 2,
}Expand description
The type of address used
Variants§
Trait Implementations§
Source§impl BitField for AddressType
impl BitField for AddressType
Source§impl Clone for AddressType
impl Clone for AddressType
Source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressType
impl Debug for AddressType
Source§impl<'a> From<&'a IpAddr> for AddressType
impl<'a> From<&'a IpAddr> for AddressType
Source§fn from(addr: &'a IpAddr) -> AddressType
fn from(addr: &'a IpAddr) -> AddressType
Converts to this type from the input type.
Source§impl Into<u8> for AddressType
impl Into<u8> for AddressType
Source§impl PartialEq for AddressType
impl PartialEq for AddressType
Source§fn eq(&self, other: &AddressType) -> bool
fn eq(&self, other: &AddressType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for AddressType
impl TryFrom<u8> for AddressType
impl Copy for AddressType
impl Eq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations§
impl Freeze for AddressType
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnsafeUnpin for AddressType
impl UnwindSafe for AddressType
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> DispatchEvent for T
impl<T> DispatchEvent for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.