Struct trust_dns_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<'_> ⓘ
pub fn iter(&self) -> SrvLookupIter<'_> ⓘ
Returns an iterator over the SRV RData
sourcepub fn ip_iter(&self) -> LookupIpIter<'_> ⓘ
pub fn ip_iter(&self) -> LookupIpIter<'_> ⓘ
Returns the list of IPs associated with the SRV record.
Note: the lack of any IPs does not necessarily meant that there are no IPs available for the service, only that they were not included in the original request. A subsequent query for the IPs via the srv.target()
should resolve to the IPs.
Trait Implementations
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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