Enum trust_dns_server::authority::LookupRecords[][src]

pub enum LookupRecords {
    Empty,
    Records {
        is_secure: bool,
        supported_algorithms: SupportedAlgorithms,
        records: Arc<RecordSet>,
    },
    ManyRecords(boolSupportedAlgorithmsVec<Arc<RecordSet>>),
    AnyRecords(AnyRecords),
}

The result of a lookup

Variants

Empty

The empty set of records

Records

The associate records

Fields of Records

is_secure: bool

was the search a secure search

supported_algorithms: SupportedAlgorithms

what are the requests supported algorithms

records: Arc<RecordSet>

the records found based on the query

Vec of disjoint record sets

AnyRecords(AnyRecords)

A generic lookup response where anything is desired

Implementations

impl LookupRecords[src]

pub fn new(
    is_secure: bool,
    supported_algorithms: SupportedAlgorithms,
    records: Arc<RecordSet>
) -> Self
[src]

Construct a new LookupRecords

pub fn many(
    is_secure: bool,
    supported_algorithms: SupportedAlgorithms,
    records: Vec<Arc<RecordSet>>
) -> Self
[src]

Construct a new LookupRecords over a set of ResordSets

pub fn was_empty(&self) -> bool[src]

This is an NxDomain or NameExists, and has no associated records

this consumes the iterator, and verifies it is empty

pub fn iter(&self) -> LookupRecordsIter<'_>

Notable traits for LookupRecordsIter<'r>

impl<'r> Iterator for LookupRecordsIter<'r> type Item = &'r Record;
[src]

Conversion to an iterator

Trait Implementations

impl Debug for LookupRecords[src]

impl Default for LookupRecords[src]

impl From<AnyRecords> for LookupRecords[src]

impl From<LookupRecords> for AuthLookup[src]

impl<'a> IntoIterator for &'a LookupRecords[src]

type Item = &'a Record

The type of the elements being iterated over.

type IntoIter = LookupRecordsIter<'a>

Which kind of iterator are we turning this into?

impl LookupObject for LookupRecords[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,