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§
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)