pub struct DnsAnswers<const PTR_STORAGE: usize, B: Buffer> { /* private fields */ }
Expand description
A DNS message answers section.
Implementations§
Source§impl<const PTR_STORAGE: usize, B: Buffer> DnsAnswers<PTR_STORAGE, B>
impl<const PTR_STORAGE: usize, B: Buffer> DnsAnswers<PTR_STORAGE, B>
Sourcepub fn iter(&mut self) -> Result<DnsAnswerIterator<'_>, DnsMessageError>
pub fn iter(&mut self) -> Result<DnsAnswerIterator<'_>, DnsMessageError>
Return an iterator over the answers section.
Sourcepub fn complete(self) -> Result<DnsMessage<PTR_STORAGE, 2, B>, DnsMessageError>
pub fn complete(self) -> Result<DnsMessage<PTR_STORAGE, 2, B>, DnsMessageError>
Complete the message. This will overwrite the next answer or further sections, if any.
Auto Trait Implementations§
impl<const PTR_STORAGE: usize, B> Freeze for DnsAnswers<PTR_STORAGE, B>where
B: Freeze,
impl<const PTR_STORAGE: usize, B> RefUnwindSafe for DnsAnswers<PTR_STORAGE, B>where
B: RefUnwindSafe,
impl<const PTR_STORAGE: usize, B> Send for DnsAnswers<PTR_STORAGE, B>where
B: Send,
impl<const PTR_STORAGE: usize, B> Sync for DnsAnswers<PTR_STORAGE, B>where
B: Sync,
impl<const PTR_STORAGE: usize, B> Unpin for DnsAnswers<PTR_STORAGE, B>where
B: Unpin,
impl<const PTR_STORAGE: usize, B> UnwindSafe for DnsAnswers<PTR_STORAGE, B>where
B: UnwindSafe,
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