Trait trust_dns_proto::op::update_message::UpdateMessage
source · pub trait UpdateMessage: Debug {
// Required methods
fn id(&self) -> u16;
fn add_zone(&mut self, query: Query);
fn add_pre_requisite(&mut self, record: 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_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];
}
Expand description
To reduce errors in using the Message struct as an Update, this will do the call throughs to properly do that.
Generally rather than constructing this by hand, see the update methods on Client
Required Methods§
sourcefn add_zone(&mut self, query: Query)
fn add_zone(&mut self, query: Query)
Adds the zone section, i.e. name.example.com would be example.com
sourcefn add_pre_requisite(&mut self, record: Record)
fn add_pre_requisite(&mut self, record: Record)
Add the pre-requisite records
These must exist, or not, for the Update request to go through.
sourcefn add_pre_requisites<R, I>(&mut self, records: R)where
R: IntoIterator<Item = Record, IntoIter = I>,
I: Iterator<Item = Record>,
fn add_pre_requisites<R, I>(&mut self, records: R)where R: IntoIterator<Item = Record, IntoIter = I>, I: Iterator<Item = Record>,
Add all the Records from the Iterator to the pre-requisites section
sourcefn add_update(&mut self, record: Record)
fn add_update(&mut self, record: Record)
Add the Record to be updated
sourcefn add_updates<R, I>(&mut self, records: R)where
R: IntoIterator<Item = Record, IntoIter = I>,
I: Iterator<Item = Record>,
fn add_updates<R, I>(&mut self, records: R)where R: IntoIterator<Item = Record, IntoIter = I>, I: Iterator<Item = Record>,
Add the Records from the Iterator to the updates section
sourcefn add_additional(&mut self, record: Record)
fn add_additional(&mut self, record: Record)
Add Records to the additional Section of the UpdateMessage
sourcefn prerequisites(&self) -> &[Record]
fn prerequisites(&self) -> &[Record]
Returns the pre-requisites
sourcefn additionals(&self) -> &[Record]
fn additionals(&self) -> &[Record]
Returns the additional records
Object Safety§
This trait is not object safe.
Implementors§
impl UpdateMessage for Message
to reduce errors in using the Message struct as an Update, this will do the call throughs to properly do that.