Struct Name
pub struct Name { /* private fields */ }
A domain name to resolve into IP addresses.
Implementations
impl Name
fn as_str(&self) -> &strView the hostname as a string slice.
Trait Implementations
impl Clone for Name
fn clone(&self) -> Self
impl Debug for Name
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Name
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Name
impl FromStr for Name
type Err = InvalidNameError;fn from_str(host: &str) -> Result<Self, Self::Err>
impl Hash for Name
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Name
fn eq(&self, other: &Self) -> bool
impl StructuralPartialEq for Name
Auto Trait Implementations
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
Blanket Implementations
impl<Q, K> Equivalent<K> for Name
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<Q, K> Equivalent<K> for Name
where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
impl<T> Any for Name
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Name
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Name
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Name
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Name
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Name
impl<T> ToOwned for Name
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for Name
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T> WithSubscriber for Name
impl<T, U> Into<U> for Name
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Name
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Name
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>