pub enum DnsSection {
Answer,
Authority,
Additional,
}Expand description
DNS message sections.
Variants§
Trait Implementations§
Source§impl Clone for DnsSection
impl Clone for DnsSection
Source§fn clone(&self) -> DnsSection
fn clone(&self) -> DnsSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DnsSection
Source§impl Debug for DnsSection
impl Debug for DnsSection
Source§impl Display for DnsSection
impl Display for DnsSection
impl Eq for DnsSection
Source§impl From<DnsSection> for ares_dns_section_t
impl From<DnsSection> for ares_dns_section_t
Source§fn from(val: DnsSection) -> Self
fn from(val: DnsSection) -> Self
Converts to this type from the input type.
Source§impl From<ares_dns_section_t> for DnsSection
impl From<ares_dns_section_t> for DnsSection
Source§fn from(val: ares_dns_section_t) -> Self
fn from(val: ares_dns_section_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DnsSection
impl Hash for DnsSection
Source§impl Ord for DnsSection
impl Ord for DnsSection
Source§fn cmp(&self, other: &DnsSection) -> Ordering
fn cmp(&self, other: &DnsSection) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DnsSection
impl PartialEq for DnsSection
Source§fn eq(&self, other: &DnsSection) -> bool
fn eq(&self, other: &DnsSection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DnsSection
impl PartialOrd for DnsSection
impl StructuralPartialEq for DnsSection
Auto Trait Implementations§
impl Freeze for DnsSection
impl RefUnwindSafe for DnsSection
impl Send for DnsSection
impl Sync for DnsSection
impl Unpin for DnsSection
impl UnsafeUnpin for DnsSection
impl UnwindSafe for DnsSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more