pub struct Lookup { /* private fields */ }
Expand description

Result of a DNS query when querying for any record type supported by the Trust-DNS Proto library.

For IP resolution see LookupIp, as it has more features for A and AAAA lookups.

Implementations

Return new instance with given rdata and the maximum TTL.

Return new instance with given records and the maximum TTL.

Return a new instance with the given records and deadline.

Returns a reference to the Query that was used to produce this result.

Returns a borrowed iterator of the returned IPs

Returns a borrowed iterator of the returned IPs

Returns the Instant at which this Lookup is no longer valid.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This is most likely not a free conversion, the RDatas will be cloned if data is held behind an Arc with more than one reference (which is most likely the case coming from cache)

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.