Struct trust_dns_resolver::lookup::SrvLookup [−][src]
pub struct SrvLookup(_);
Expand description
The result of an SRV lookup
Implementations
pub fn iter(&self) -> SrvLookupIter<'_>ⓘNotable traits for SrvLookupIter<'i>impl<'i> Iterator for SrvLookupIter<'i> type Item = &'i SRV;
pub fn iter(&self) -> SrvLookupIter<'_>ⓘNotable traits for SrvLookupIter<'i>impl<'i> Iterator for SrvLookupIter<'i> type Item = &'i SRV;
Notable traits for SrvLookupIter<'i>
impl<'i> Iterator for SrvLookupIter<'i> type Item = &'i SRV;
Returns an iterator over the SRV RData
Returns a reference to the Query that was used to produce this result.
pub fn ip_iter(&self) -> LookupIpIter<'_>ⓘNotable traits for LookupIpIter<'i>impl<'i> Iterator for LookupIpIter<'i> type Item = IpAddr;
pub fn ip_iter(&self) -> LookupIpIter<'_>ⓘNotable traits for LookupIpIter<'i>impl<'i> Iterator for LookupIpIter<'i> type Item = IpAddr;
Notable traits for LookupIpIter<'i>
impl<'i> Iterator for LookupIpIter<'i> type Item = IpAddr;
Returns the list of IPs associated with the SRV record.
Note: That Trust-DNS performs a recursive lookup on SRV records for IPs if they were not included in the original request. If there are no IPs associated to the result, a subsequent query for the IPs via the srv.target()
should not resolve to the IPs.
Trait Implementations
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)
type IntoIter = SrvLookupIntoIter
type IntoIter = SrvLookupIntoIter
Which kind of iterator are we turning this into?
Auto Trait Implementations
impl RefUnwindSafe for SrvLookup
impl UnwindSafe for SrvLookup
Blanket Implementations
Mutably borrows from an owned value. Read more