hickory_proto::rr::domain

Trait IntoLabel

Source
pub trait IntoLabel: Sized {
    // Required method
    fn into_label(self) -> Result<Label, ProtoError>;
}
Expand description

Conversion into a Label

Required Methods§

Source

fn into_label(self) -> Result<Label, ProtoError>

Convert this into Label

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 IntoLabel for String

Source§

impl IntoLabel for Vec<u8>

Source§

impl<'a> IntoLabel for &'a str

Source§

impl<'a> IntoLabel for &'a [u8]

Implementors§