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: Vec<DnsResponsePayload>

Authoratives section

resp: Vec<DnsResponsePayload>

Responses

status: QDnsQueryRec

Status

Implementations

Returns true if the response is OK

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.

Constructs an instance from the remote response.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.