pub enum BufferType {
Question,
Answer,
Authority,
Additional,
}
Expand description
The buffer type when dealing with DNS messages.
Variants§
Question
The question buffer.
Answer
The answer buffer.
Authority
The authority buffer.
Additional
The additional buffer.
Implementations§
Source§impl BufferType
impl BufferType
Sourcepub const fn is_question(&self) -> bool
pub const fn is_question(&self) -> bool
Returns true
if this value is of type Question
. Returns false
otherwise
Sourcepub const fn is_answer(&self) -> bool
pub const fn is_answer(&self) -> bool
Returns true
if this value is of type Answer
. Returns false
otherwise
Returns true
if this value is of type Authority
. Returns false
otherwise
Sourcepub const fn is_additional(&self) -> bool
pub const fn is_additional(&self) -> bool
Returns true
if this value is of type Additional
. Returns false
otherwise
Trait Implementations§
Source§impl Clone for BufferType
impl Clone for BufferType
Source§fn clone(&self) -> BufferType
fn clone(&self) -> BufferType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BufferType
impl Debug for BufferType
Source§impl Display for BufferType
impl Display for BufferType
Source§impl PartialEq for BufferType
impl PartialEq for BufferType
impl Copy for BufferType
impl Eq for BufferType
impl StructuralPartialEq for BufferType
Auto Trait Implementations§
impl Freeze for BufferType
impl RefUnwindSafe for BufferType
impl Send for BufferType
impl Sync for BufferType
impl Unpin for BufferType
impl UnwindSafe for BufferType
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