Enum cdns_rs::query::QDnsQueriesRes[][src]

pub enum QDnsQueriesRes {
    DnsOk {
        res: Vec<QDnsQuery>,
    },
    DnsNotAvailable,
}
Expand description

The result enum.

Variants

DnsOk

Fields

res: Vec<QDnsQuery>

Received results

DnsNotAvailable

All nameservers did not respond

Implementations

Unwraps the results without panics.

Checks if the received result contains any results. It does not check if results were successfull. It just answers on question if any DNS server responded or record in local databases was found.

This function tells how many responses it contains. If Self is QDnsQueriesRes::DnsNotAvailable then 0 will be returned.

This function returns the results if any.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

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.

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.