Trait trust_dns_server::authority::LookupObject
source · [−]pub trait LookupObject: Send {
fn is_empty(&self) -> bool;
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Record> + Send + 'a>;
fn take_additionals(&mut self) -> Option<Box<dyn LookupObject>>;
}
Expand description
An Object Safe Lookup for Authority
Required methods
Returns true if either the associated Records are empty, or this is a NameExists or NxDomain
Conversion to an iterator
fn take_additionals(&mut self) -> Option<Box<dyn LookupObject>>
fn take_additionals(&mut self) -> Option<Box<dyn LookupObject>>
For CNAME and similar records, this is an additional set of lookup records
it is acceptable for this to return None after the first call.