#[repr(C)]pub struct Message<'a> { /* private fields */ }
Expand description
A DNS message.
Implementations
sourceimpl Message<'_>
impl Message<'_>
pub fn header(&self) -> &Header
pub fn header_mut(&mut self) -> &mut Header
pub fn add_question(&mut self, question: &Question<'_>)
pub fn add_answer(&mut self, answer: &Answer<'_>)
pub fn as_bytes(&self) -> &[u8]
pub fn questions(&self) -> Questions<'_>ⓘNotable traits for Questions<'a>impl<'a> Iterator for Questions<'a> type Item = Question<'a>;
pub fn answers(&self) -> Answers<'_>ⓘNotable traits for Answers<'a>impl<'a> Iterator for Answers<'a> type Item = Answer<'a>;
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> !UnwindSafe for Message<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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