Trait trust_dns_server::authority::LookupObject[][src]

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>>; }

An Object Safe Lookup for Authority

Required methods

fn is_empty(&self) -> bool[src]

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

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

Conversion to an iterator

fn take_additionals(&mut self) -> Option<Box<dyn LookupObject>>[src]

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.

Loading content...

Implementors

impl LookupObject for AuthLookup[src]

impl LookupObject for LookupRecords[src]

impl LookupObject for EmptyLookup[src]

Loading content...