[−][src]Struct dns_message_parser::DomainName
Implementations
impl DomainName
[src]
pub fn decode(bytes: Bytes) -> DecodeResult<DomainName>
[src]
impl DomainName
[src]
pub fn append_label(&mut self, label: &str) -> Result<(), DomainNameError>
[src]
impl DomainName
[src]
pub fn encode(&self) -> EncodeResult<BytesMut>
[src]
Trait Implementations
impl Clone for DomainName
[src]
pub fn clone(&self) -> DomainName
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DomainName
[src]
impl Default for DomainName
[src]
impl Display for DomainName
[src]
impl Eq for DomainName
[src]
impl From<DomainName> for String
[src]
pub fn from(domain_name: DomainName) -> Self
[src]
impl Hash for DomainName
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'_> PartialEq<&'_ str> for DomainName
[src]
pub fn eq(&self, other: &&str) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<DomainName> for DomainName
[src]
pub fn eq(&self, other: &DomainName) -> bool
[src]
pub fn ne(&self, other: &DomainName) -> bool
[src]
impl StructuralEq for DomainName
[src]
impl StructuralPartialEq for DomainName
[src]
impl<'_> TryFrom<&'_ str> for DomainName
[src]
type Error = DomainNameError
The type returned in the event of a conversion error.
pub fn try_from(string: &str) -> Result<Self, DomainNameError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for DomainName
[src]
impl Send for DomainName
[src]
impl Sync for DomainName
[src]
impl Unpin for DomainName
[src]
impl UnwindSafe for DomainName
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,