fn add_rr(
        &mut self,
        owner: &Name,
        rr_type: Type,
        class: Class,
        ttl: Ttl,
        rdata: &Rdata,
    ) -> Result<()> {
        self.try_push(owner.wire_repr())?;
        self.try_push_u16(rr_type.into())?;
        self.try_push_u16(class.into())?;
        self.try_push_u32(ttl.into())?;
        self.try_push_u16(rdata.len() as u16)?;
        self.try_push(rdata)
    }
/// Writes out an RR at the current cursor. This is for internal
/// use: the write is not done atomically and may change the cursor
/// even when an error is returned. This is intended by used with
/// [`Writer::with_rollback`].
Writes out an RR at the current cursor. This is for internal
use: the write is not done atomically and may change the cursor
even when an error is returned. This is intended by used with
[`Writer::with_rollback`].
Writes out an RR at the current cursor . This is for internal use : the write is not done atomically and may change the cursor even when an error is returned . This is intended by used with [ ` Writer :: with_rollback ` ] .
fn add_rr(
        &mut self,
        owner: &Name,
        rr_type: Type,
        class: Class,
        ttl: Ttl,
        rdata: &Rdata,
    ) -> Result<()> {
        self.try_push(owner.wire_repr())?;
        self.try_push_u16(rr_type.into())?;
        self.try_push_u16(class.into())?;
        self.try_push_u32(ttl.into())?;
        self.try_push_u16(rdata.len() as u16)?;
        self.try_push(rdata)
    }
fn add_rr ( & mut self , owner : & Name , rr_type : Type , class : Class , ttl : Ttl , rdata : & Rdata , ) -> Result < ( ) > { self . try_push ( owner . wire_repr ( ) ) ? ; self . try_push_u16 ( rr_type . into ( ) ) ? ; self . try_push_u16 ( class . into ( ) ) ? ; self . try_push_u32 ( ttl . into ( ) ) ? ; self . try_push_u16 ( rdata . len ( ) as u16 ) ? ; self . try_push ( rdata ) }
Writes out an RR at the current cursor.
Writes out an RR at the current cursor .
&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