Trait mhost::IntoName[]

pub trait IntoName {
    pub fn into_name(self) -> Result<Name, ProtoError>;
}

Conversion into a Name

Required methods

pub fn into_name(self) -> Result<Name, ProtoError>

Convert this into Name

Loading content...

Implementations on Foreign Types

impl<'a> IntoName for &'a str

pub fn into_name(self) -> Result<Name, ProtoError>

Performs a utf8, IDNA or punycode, translation of the str into Name

impl IntoName for String

pub fn into_name(self) -> Result<Name, ProtoError>

Performs a utf8, IDNA or punycode, translation of the String into Name

Loading content...

Implementors

impl<T> IntoName for T where
    T: Into<Name>, 

Loading content...