pub fn add_additional_rrset(&mut self, owner: &Name, rrset: &Rrset) -> Result<()> {
        self.with_rollback(|this| {
            this.section = Section::Additional;
            let n_added = this.add_rrset(owner, rrset)?;
            if n_added > u16::MAX as usize {
                Err(Error::CountOverflow)
            } else if let Some(new_arcount) = this.arcount.checked_add(n_added as u16) {
                this.arcount = new_arcount;
                Ok(())
            } else {
                Err(Error::CountOverflow)
            }
        })
    }
/// Adds an RRset to the additional section of the message. This
/// must be used after any questions and any RRs in other sections
/// are added.
Adds an RRset to the additional section of the message. This
must be used after any questions and any RRs in other sections
are added.
Adds an RRset to the additional section of the message . This must be used after any questions and any RRs in other sections are added .
pub fn add_additional_rrset(&mut self, owner: &Name, rrset: &Rrset) -> Result<()> {
        self.with_rollback(|this| {
            this.section = Section::Additional;
            let n_added = this.add_rrset(owner, rrset)?;
            if n_added > u16::MAX as usize {
                Err(Error::CountOverflow)
            } else if let Some(new_arcount) = this.arcount.checked_add(n_added as u16) {
                this.arcount = new_arcount;
                Ok(())
            } else {
                Err(Error::CountOverflow)
            }
        })
    }
pub fn add_additional_rrset ( & mut self , owner : & Name , rrset : & Rrset ) -> Result < ( ) > { self . with_rollback ( | this | { this . section = Section :: Additional ; let n_added = this . add_rrset ( owner , rrset ) ? ; if n_added > u16 :: MAX as usize { Err ( Error :: CountOverflow ) } else if let Some ( new_arcount ) = this . arcount . checked_add ( n_added as u16 ) { this . arcount = new_arcount ; Ok ( ( ) ) } else { Err ( Error :: CountOverflow ) } } ) }
Adds an RRset to the additional section of the message.
Adds an RRset to the additional section of the message .
&mut self
owner
&Name
rrset
&Rrset
&mut self
owner
&Name
rrset
&Rrset