Trait LookupObject

Source
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§

Source

fn is_empty(&self) -> bool

Returns true if either the associated Records are empty, or this is a NameExists or NxDomain

Source

fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a Record> + Send + 'a>

Conversion to an iterator

Source

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§

Source

fn dnssec_summary(&self) -> DnssecSummary

Available on crate feature __dnssec only.

Whether the records have been DNSSEC validated or not

Implementors§

Source§

impl LookupObject for AuthLookup

Source§

impl LookupObject for LookupRecords

Source§

impl LookupObject for BlocklistLookup

Available on crate feature blocklist only.
Source§

impl LookupObject for ForwardLookup

Available on crate feature resolver only.
Source§

impl LookupObject for RecursiveLookup

Available on crate feature recursor only.
Source§

impl LookupObject for EmptyLookup