Struct Name

struct Name { ... }

A domain name to resolve into IP addresses.

Implementations

impl Name

fn as_str(self: &Self) -> &str

View the hostname as a string slice.

impl Clone for Name

fn clone(self: &Self) -> Name

impl Debug for Name

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for Name

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for Name

impl Freeze for Name

impl FromStr for Name

fn from_str(host: &str) -> Result<Self, <Self as >::Err>

impl Hash for Name

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for Name

fn eq(self: &Self, other: &Name) -> bool

impl RefUnwindSafe for Name

impl Send for Name

impl StructuralPartialEq for Name

impl Sync for Name

impl Unpin for Name

impl UnsafeUnpin for Name

impl UnwindSafe for Name

impl<Q, K> Equivalent for Name

fn equivalent(self: &Self, key: &K) -> bool

impl<Q, K> Equivalent for Name

fn equivalent(self: &Self, key: &K) -> bool

impl<T> Any for Name

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Name

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Name

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Name

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Name

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Name

impl<T> ToOwned for Name

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for Name

fn to_string(self: &Self) -> String

impl<T> WithSubscriber for Name

impl<T, U> Into for Name

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Name

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Name

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>