#[repr(u8)]pub enum AddressType {
IPv4 = 1,
Domain = 3,
IPv6 = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for AddressType
impl Clone for AddressType
Source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
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 AddressType
impl Debug for AddressType
Source§impl Default for AddressType
impl Default for AddressType
Source§fn default() -> AddressType
fn default() -> AddressType
Returns the “default value” for a type. Read more
Source§impl From<AddressType> for u8
impl From<AddressType> for u8
Source§fn from(addr_type: AddressType) -> Self
fn from(addr_type: AddressType) -> Self
Converts to this type from the input type.
Source§impl Hash for AddressType
impl Hash for AddressType
Source§impl Ord for AddressType
impl Ord for AddressType
Source§fn cmp(&self, other: &AddressType) -> Ordering
fn cmp(&self, other: &AddressType) -> 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 AddressType
impl PartialEq for AddressType
Source§impl PartialOrd for AddressType
impl PartialOrd for AddressType
Source§impl TryFrom<u8> for AddressType
impl TryFrom<u8> 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)