Trait trust_dns::op::message::UpdateMessage [] [src]

pub trait UpdateMessage: Debug {
    fn id(&self) -> u16;
fn add_zone(&mut self, query: Query);
fn add_pre_requisite(&mut self, record: Record);
fn add_all_pre_requisites(&mut self, vector: &[&Record]);
fn add_pre_requisites<R, I>(&mut self, records: R)
    where
        R: IntoIterator<Item = Record, IntoIter = I>,
        I: Iterator<Item = Record>
;
fn add_update(&mut self, record: Record);
fn add_all_updates(&mut self, vector: &[&Record]);
fn add_updates<R, I>(&mut self, records: R)
    where
        R: IntoIterator<Item = Record, IntoIter = I>,
        I: Iterator<Item = Record>
;
fn add_additional(&mut self, record: Record);
fn zones(&self) -> &[Query];
fn prerequisites(&self) -> &[Record];
fn updates(&self) -> &[Record];
fn additionals(&self) -> &[Record];
fn sig0(&self) -> &[Record];
fn sign(&mut self, signer: &Signer, inception_time: u32) -> DnsSecResult<()>; }

To reduce errors in using the Message struct as an Update, this will do the call throughs to properly do that.

Generally rather than constructin this by hand, see the update methods on Client

Required Methods

see Header::id

Adds the zone section, i.e. name.example.com would be example.com

Add the pre-requisite records

These must exist, or not, for the Update request to go through.

Deprecated

Add all pre-requisites to the UpdateMessage

Add all the Records from the Iterator to the pre-reqisites section

Add the Record to be updated

Deprecated

Add the set of Records to be updated

Add the Records from the Iterator to the updates section

Add Records to the additional Section of hte UpdateMessage

Returns the Zones to be updated, generally should only be one.

Returns the pre-requisites

Returns the records to be updated

Returns the additonal records

This is used to authenticate update messages.

see Message::sig0() for more information.

Signs the UpdateMessage, used to validate the authenticity and authorization of UpdateMessage

Implementors