pub trait LookupObject: Send {
// Required methods
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>>;
// Provided method
fn dnssec_summary(&self) -> DnssecSummary { ... }
}Expand description
An Object Safe Lookup for Authority
Required Methods§
Sourcefn is_empty(&self) -> bool
fn is_empty(&self) -> bool
Returns true if either the associated Records are empty, or this is a NameExists or NxDomain
Sourcefn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Record> + Send + 'a>
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Record> + Send + 'a>
Conversion to an iterator
Sourcefn 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.
Provided Methods§
Sourcefn dnssec_summary(&self) -> DnssecSummary
Available on crate feature __dnssec only.
fn dnssec_summary(&self) -> DnssecSummary
__dnssec only.Whether the records have been DNSSEC validated or not
Implementors§
impl LookupObject for AuthLookup
impl LookupObject for LookupRecords
impl LookupObject for BlocklistLookup
Available on crate feature
blocklist only.impl LookupObject for ForwardLookup
Available on crate feature
resolver only.impl LookupObject for RecursiveLookup
Available on crate feature
recursor only.