Struct async_std_resolver::lookup::SrvLookup
source · [−]pub struct SrvLookup(_);
Expand description
The result of an SRV lookup
Implementations
sourceimpl SrvLookup
impl SrvLookup
sourcepub 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;
Returns an iterator over the SRV RData
sourcepub fn query(&self) -> &Query
pub fn query(&self) -> &Query
Returns a reference to the Query that was used to produce this result.
sourcepub 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;
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
sourceimpl IntoIterator for SrvLookup
impl IntoIterator for SrvLookup
sourcefn into_iter(self) -> <SrvLookup as IntoIterator>::IntoIter
fn into_iter(self) -> <SrvLookup as IntoIterator>::IntoIter
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 Send for SrvLookup
impl Sync for SrvLookup
impl Unpin for SrvLookup
impl UnwindSafe for SrvLookup
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more