pub enum LookupRecords {
    Empty,
    Records {
        lookup_options: LookupOptions,
        records: Arc<RecordSet>,
    },
    ManyRecords(LookupOptionsVec<Arc<RecordSet>>),
    AnyRecords(AnyRecords),
}
Expand description

The result of a lookup

Variants

Empty

The empty set of records

Records

Fields

lookup_options: LookupOptions

LookupOptions for the request, e.g. dnssec and supported algorithms

records: Arc<RecordSet>

the records found based on the query

The associate records

ManyRecords(LookupOptionsVec<Arc<RecordSet>>)

Vec of disjoint record sets

AnyRecords(AnyRecords)

A generic lookup response where anything is desired

Implementations

Construct a new LookupRecords

Construct a new LookupRecords over a set of ResordSets

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

this consumes the iterator, and verifies it is empty

Conversion to an iterator

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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

Conversion to an iterator

For CNAME and similar records, this is an additional set of lookup records Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more