Struct trust_dns_resolver::lookup_ip::LookupIp[][src]

pub struct LookupIp(_);

Result of a DNS query when querying for A or AAAA records.

When resolving IP records, there can be many IPs that match a given name. A consumer of this should expect that there are more than a single address potentially returned. Generally there are multiple IPs stored for a given service in DNS so that there is a form of high availability offered for a given name. The service implementation is resposible for the semantics around which IP should be used and when, but in general if a connection fails to one, the next in the list should be attempted.

Methods

impl LookupIp
[src]

Important traits for LookupIpIter<'i>

Returns a borrowed iterator of the returned IPs

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

Trait Implementations

impl Debug for LookupIp
[src]

Formats the value using the given formatter. Read more

impl Clone for LookupIp
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<Lookup> for LookupIp
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for LookupIp

impl Sync for LookupIp