trust_dns_proto::rr::domain

Trait IntoName

Source
pub trait IntoName: Sized {
    // Required method
    fn into_name(self) -> ProtoResult<Name>;
}
Expand description

Conversion into a Name

Required Methods§

Source

fn into_name(self) -> ProtoResult<Name>

Convert this into Name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoName for &String

Source§

fn into_name(self) -> ProtoResult<Name>

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

Source§

impl IntoName for String

Source§

fn into_name(self) -> ProtoResult<Name>

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

Source§

impl<'a> IntoName for &'a str

Source§

fn into_name(self) -> ProtoResult<Name>

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

Implementors§

Source§

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