Struct flex_dns::answer::DnsAnswers
source · 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> 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