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]
impl LookupIpⓘImportant traits for LookupIpIter<'i>pub fn iter(&self) -> LookupIpIter[src]
pub fn iter(&self) -> LookupIpIterReturns a borrowed iterator of the returned IPs
pub fn valid_until(&self) -> Instant[src]
pub fn valid_until(&self) -> InstantReturns the Instant at which this lookup is no longer valid.
Trait Implementations
impl Debug for LookupIp[src]
impl Debug for LookupIpfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for LookupIp[src]
impl Clone for LookupIpfn clone(&self) -> LookupIp[src]
fn clone(&self) -> LookupIpReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl From<Lookup> for LookupIp[src]
impl From<Lookup> for LookupIp