Struct trust_dns_resolver::lookup::Lookup
source · pub struct Lookup { /* private fields */ }
Expand description
Result of a DNS query when querying for any record type supported by the TRust-DNS Proto library.
For IP resolution see LookupIp, as it has more features for A and AAAA lookups.
Implementations
sourceimpl Lookup
impl Lookup
sourcepub fn new_with_max_ttl(rdatas: Arc<Vec<RData>>) -> Self
pub fn new_with_max_ttl(rdatas: Arc<Vec<RData>>) -> Self
Return new instance with given rdatas and the maximum TTL.
sourcepub fn new_with_deadline(rdatas: Arc<Vec<RData>>, valid_until: Instant) -> Self
pub fn new_with_deadline(rdatas: Arc<Vec<RData>>, valid_until: Instant) -> Self
Return a new instance with the given rdatas and deadline.
sourcepub fn iter(&self) -> LookupIter<'_> ⓘ
pub fn iter(&self) -> LookupIter<'_> ⓘ
Returns a borrowed iterator of the returned IPs
sourcepub fn valid_until(&self) -> Instant
pub fn valid_until(&self) -> Instant
Returns the Instant
at which this Lookup
is no longer valid.
Trait Implementations
sourceimpl From<Lookup> for Ipv4Lookup
impl From<Lookup> for Ipv4Lookup
sourceimpl From<Lookup> for Ipv6Lookup
impl From<Lookup> for Ipv6Lookup
sourceimpl From<Lookup> for ReverseLookup
impl From<Lookup> for ReverseLookup
impl Eq for Lookup
impl StructuralEq for Lookup
impl StructuralPartialEq for Lookup
Auto Trait Implementations
impl RefUnwindSafe for Lookup
impl Send for Lookup
impl Sync for Lookup
impl Unpin for Lookup
impl UnwindSafe for Lookup
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