Struct Name
pub struct Name(/* private field */);
A name that must be resolved to addresses.
Implementations
impl Name
fn as_str(&self) -> &strView the name as a string.
Trait Implementations
impl Debug for Name
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl FromStr for Name
type Err = InvalidNameError;fn from_str(host: &str) -> Result<Self, Self::Err>
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<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> From<T> for Name
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for Name
impl<T> PolicyExt for Name
where
T: ?Sized,
fn and<P, B, E>(self, other: P) -> And<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,fn or<P, B, E>(self, other: P) -> Or<T, P> where T: Sized + Policy<B, E>, P: Policy<B, E>,
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>