pub enum Section {
Answer,
Authority,
Additional,
}
Expand description
A helper type enumerating the three kinds of record sections.
See the documentation of Message
for what the three sections are.
Variants
Answer
Authority
Additional
Implementations
Trait Implementations
sourceimpl PartialEq<Section> for Section
impl PartialEq<Section> for Section
sourceimpl PartialOrd<Section> for Section
impl PartialOrd<Section> for Section
sourcefn partial_cmp(&self, other: &Section) -> Option<Ordering>
fn partial_cmp(&self, other: &Section) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Section
impl Eq for Section
impl StructuralEq for Section
impl StructuralPartialEq for Section
Auto Trait Implementations
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.