Struct hickory_resolver::lookup::SrvLookup
source · pub struct SrvLookup(/* private fields */);
Expand description
The result of an SRV lookup
Implementations§
source§impl SrvLookup
impl SrvLookup
sourcepub fn iter(&self) -> SrvLookupIter<'_> ⓘ
pub fn iter(&self) -> SrvLookupIter<'_> ⓘ
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<'_> ⓘ
pub fn ip_iter(&self) -> LookupIpIter<'_> ⓘ
Returns the list of IPs associated with the SRV record.
Note: That Hickory 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§
source§impl IntoIterator for SrvLookup
impl IntoIterator for SrvLookup
source§fn into_iter(self) -> Self::IntoIter
fn into_iter(self) -> Self::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 Freeze for SrvLookup
impl RefUnwindSafe for SrvLookup
impl Send for SrvLookup
impl Sync for SrvLookup
impl Unpin for SrvLookup
impl UnwindSafe for SrvLookup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)