Struct trust_dns_resolver::lookup::Lookup [−][src]
pub struct Lookup { /* fields omitted */ }
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.
pub fn iter(&self) -> LookupIter<'_>ⓘNotable traits for LookupIter<'a>impl<'a> Iterator for LookupIter<'a> type Item = &'a RData;
pub fn iter(&self) -> LookupIter<'_>ⓘNotable traits for LookupIter<'a>impl<'a> Iterator for LookupIter<'a> type Item = &'a RData;
impl<'a> Iterator for LookupIter<'a> type Item = &'a RData;
Returns a borrowed iterator of the returned IPs
pub fn record_iter(&self) -> LookupRecordIter<'_>ⓘNotable traits for LookupRecordIter<'a>impl<'a> Iterator for LookupRecordIter<'a> type Item = &'a Record;
pub fn record_iter(&self) -> LookupRecordIter<'_>ⓘNotable traits for LookupRecordIter<'a>impl<'a> Iterator for LookupRecordIter<'a> type Item = &'a Record;
impl<'a> Iterator for LookupRecordIter<'a> type Item = &'a Record;
Returns a borrowed iterator of the returned IPs
Returns the Instant
at which this Lookup
is no longer valid.
Trait Implementations
This is most likely not a free conversion, the RData
s will be cloned if data is
held behind an Arc with more than one reference (which is most likely the case coming from cache)
type IntoIter = LookupIntoIter
type IntoIter = LookupIntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for Lookup
impl UnwindSafe for Lookup
Blanket Implementations
Mutably borrows from an owned value. Read more