pub fn add_additional_rr(
        &mut self,
        owner: &Name,
        rr_type: Type,
        class: Class,
        ttl: Ttl,
        rdata: &Rdata,
    ) -> Result<()> {
        self.with_rollback(|this| {
            this.section = Section::Additional;
            this.add_rr(owner, rr_type, class, ttl, rdata)?;
            if let Some(new_arcount) = this.arcount.checked_add(1) {
                this.arcount = new_arcount;
                Ok(())
            } else {
                Err(Error::CountOverflow)
            }
        })
    }
/// Adds a resource record to the additional section of the message.
/// This must be used after any questions and any RRs in other
/// sections are added.
Adds a resource record to the additional section of the message.
This must be used after any questions and any RRs in other
sections are added.
Adds a resource record 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_rr(
        &mut self,
        owner: &Name,
        rr_type: Type,
        class: Class,
        ttl: Ttl,
        rdata: &Rdata,
    ) -> Result<()> {
        self.with_rollback(|this| {
            this.section = Section::Additional;
            this.add_rr(owner, rr_type, class, ttl, rdata)?;
            if let Some(new_arcount) = this.arcount.checked_add(1) {
                this.arcount = new_arcount;
                Ok(())
            } else {
                Err(Error::CountOverflow)
            }
        })
    }
pub fn add_additional_rr ( & mut self , owner : & Name , rr_type : Type , class : Class , ttl : Ttl , rdata : & Rdata , ) -> Result < ( ) > { self . with_rollback ( | this | { this . section = Section :: Additional ; this . add_rr ( owner , rr_type , class , ttl , rdata ) ? ; if let Some ( new_arcount ) = this . arcount . checked_add ( 1 ) { this . arcount = new_arcount ; Ok ( ( ) ) } else { Err ( Error :: CountOverflow ) } } ) }
Adds a resource record to the additional section of the message.
Adds a resource record to the additional section of the message .
&mut self
owner
&Name
rr_type
Type
class
Class
ttl
Ttl
rdata
&Rdata
&mut self
owner
&Name
rr_type
Type
class
Class
ttl
Ttl
rdata
&Rdata