Struct Name

struct Name(_)

A name that must be resolved to addresses.

Implementations

impl Name

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

View the name as a string.

impl Debug for Name

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

impl Freeze for Name

impl FromStr for Name

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

impl RefUnwindSafe for Name

impl Send for Name

impl Sync for Name

impl Unpin for Name

impl UnsafeUnpin for Name

impl UnwindSafe for Name

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> ErasedDestructor for Name

impl<T> From for Name

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Name

impl<T> PolicyExt for Name

fn and<P, B, E>(self: Self, other: P) -> And<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>
fn or<P, B, E>(self: Self, other: P) -> Or<T, P>
where
    T: Policy<B, E>,
    P: Policy<B, E>

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>