Struct flex_dns::additional::DnsAdditionals
source · pub struct DnsAdditionals<const PTR_STORAGE: usize, B: Buffer> { /* private fields */ }Expand description
A DNS message additionals section.
Implementations§
source§impl<const PTR_STORAGE: usize, B: Buffer> DnsAdditionals<PTR_STORAGE, B>
impl<const PTR_STORAGE: usize, B: Buffer> DnsAdditionals<PTR_STORAGE, B>
sourcepub fn append(
&mut self,
answer: DnsAdditional<'_, DnsAType<'_>>
) -> Result<(), DnsMessageError>
pub fn append( &mut self, answer: DnsAdditional<'_, DnsAType<'_>> ) -> Result<(), DnsMessageError>
Append an additional to the message. This will overwrite the next additional or further sections, if any.
sourcepub fn iter(&mut self) -> Result<DnsAdditionalsIterator<'_>, DnsMessageError>
pub fn iter(&mut self) -> Result<DnsAdditionalsIterator<'_>, DnsMessageError>
Return an iterator over the additionals section.
sourcepub fn complete(self) -> Result<DnsMessage<PTR_STORAGE, 3, B>, DnsMessageError>
pub fn complete(self) -> Result<DnsMessage<PTR_STORAGE, 3, B>, DnsMessageError>
Complete writing to the additionals section and return the message.
Auto Trait Implementations§
impl<const PTR_STORAGE: usize, B> RefUnwindSafe for DnsAdditionals<PTR_STORAGE, B>where B: RefUnwindSafe,
impl<const PTR_STORAGE: usize, B> Send for DnsAdditionals<PTR_STORAGE, B>where B: Send,
impl<const PTR_STORAGE: usize, B> Sync for DnsAdditionals<PTR_STORAGE, B>where B: Sync,
impl<const PTR_STORAGE: usize, B> Unpin for DnsAdditionals<PTR_STORAGE, B>where B: Unpin,
impl<const PTR_STORAGE: usize, B> UnwindSafe for DnsAdditionals<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