pub struct DnsResolution {
pub queried: String,
pub via: DnsSource,
pub upstream_used: Option<IpAddr>,
pub answers: Vec<DnsAnswer>,
pub took: Duration,
pub cached: bool,
pub authenticated: bool,
pub error: Option<DnsError>,
}Expand description
Result of a single DNS resolution attempt.
Fields§
§queried: StringThe name that was queried.
via: DnsSourceWhich resolver path was used.
upstream_used: Option<IpAddr>Upstream the stub forwarded to, if known (parsed from resolvectl).
answers: Vec<DnsAnswer>Answers returned for the query.
took: DurationHow long the resolution took.
cached: boolTrue when the answer was served from the resolver’s cache.
authenticated: boolTrue when the answer was DNSSEC-validated.
error: Option<DnsError>Set when the resolver returned an error instead of answers.
Trait Implementations§
Source§impl Clone for DnsResolution
impl Clone for DnsResolution
Source§fn clone(&self) -> DnsResolution
fn clone(&self) -> DnsResolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DnsResolution
impl Debug for DnsResolution
Source§impl<'de> Deserialize<'de> for DnsResolution
impl<'de> Deserialize<'de> for DnsResolution
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DnsResolution
impl PartialEq for DnsResolution
Source§impl Serialize for DnsResolution
impl Serialize for DnsResolution
impl Eq for DnsResolution
impl StructuralPartialEq for DnsResolution
Auto Trait Implementations§
impl Freeze for DnsResolution
impl RefUnwindSafe for DnsResolution
impl Send for DnsResolution
impl Sync for DnsResolution
impl Unpin for DnsResolution
impl UnsafeUnpin for DnsResolution
impl UnwindSafe for DnsResolution
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