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

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>
pub fn iter(&self) -> LookupIpIter
[src]

Returns a borrowed iterator of the returned IPs

pub fn query(&self) -> &Query
[src]

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

pub fn valid_until(&self) -> Instant
[src]

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

Trait Implementations

impl From<Lookup> for LookupIp
[src]

impl Clone for LookupIp
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LookupIp
[src]

Auto Trait Implementations

impl Send for LookupIp

impl Sync for LookupIp

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T