pub enum AuthLookup {
    Empty,
    Records {
        answers: LookupRecords,
        additionals: Option<LookupRecords>,
    },
    SOA(LookupRecords),
    AXFR {
        start_soa: LookupRecords,
        records: LookupRecords,
        end_soa: LookupRecords,
    },
}
Expand description

The result of a lookup on an Authority

Lifetimes

  • 'c - the catalogue lifetime
  • 'r - the recordset lifetime, subset of ’c
  • 'q - the queries lifetime

Variants

Empty

No records

Records

Fields

answers: LookupRecords

Authoritative answers

additionals: Option<LookupRecords>

Optional set of LookupRecords

Records

SOA(LookupRecords)

Soa only differs from Records in that the lifetime on the name is from the authority, and not the query

AXFR

Fields

start_soa: LookupRecords

The first SOA record in an AXFR response

records: LookupRecords

The records to return

end_soa: LookupRecords

The last SOA record of an AXFR (matches the first)

An axfr starts with soa, chained to all the records, then another soa…

Implementations

Construct an answer with additional section

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

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

this consumes the iterator, and verifies it is empty

Conversion to an iterator

Does not panic, but will return no records if it is not of that type

Takes the additional records, leaving behind None

Trait Implementations

Formats the value using the given formatter. Read more

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

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