Struct cdns_rs::query::QDnsQuery [−][src]
pub struct QDnsQuery {
pub elapsed: Option<Duration>,
pub server: String,
pub aa: bool,
pub authoratives: Vec<DnsResponsePayload>,
pub resp: Vec<DnsResponsePayload>,
pub status: QDnsQueryRec,
}
Expand description
A structure which describes the query properties and contains the results.
Fields
elapsed: Option<Duration>
A realtime time elapsed for query
server: String
Server which performed the response and port number
aa: bool
Authoritative Answer
Authoratives section
resp: Vec<DnsResponsePayload>
Responses
status: QDnsQueryRec
Status
Implementations
Returns the authorative server data if any
Returns the responses if any
Moves the responses from structure
Constructs instance like it is from ‘local’ source but not from DNS server.
pub fn from_response(
server: &SocketAddr,
ans: DnsRequestAnswer,
now: Option<&Instant>
) -> CDnsResult<Self>
pub fn from_response(
server: &SocketAddr,
ans: DnsRequestAnswer,
now: Option<&Instant>
) -> CDnsResult<Self>
Constructs an instance from the remote response.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for QDnsQuery
impl UnwindSafe for QDnsQuery
Blanket Implementations
Mutably borrows from an owned value. Read more