Struct cdns_rs::a_sync::query::QDns[][src]

pub struct QDns<'req> { /* fields omitted */ }
Expand description

A main instance which contains all common logic.

Implementations

Initializes new empty storage for requests.

In some cases it is good idea to combine different requests, because by default all requests are performed in parallel. But in some cases it is bad idea.

Arguments
  • resolvers - an Arc ResolveConfig which contains configuration i.e nameservers

  • planned_reqs_len - how many requests are planned

  • opts - QuerySetup additional options or overrides. Use default() for default values.

Returns

Never panics. Returns Self.

Adds new request to previously created empty storage for request with QDns::make_empty.

Arguemnts
  • qtype - a QType type of the request

  • req_name - a Into QDnsName which is target. i.e ‘localhost’ or ‘domain.tld’

Returns

This is helper which makes for you an A, AAAA query. The order of A and AAAA and which from both are allowed is defined in the ResolveConfig.

Use this function directly. Do not use QDns::make_empty

Arguments
  • resolvers - an Arc ResolveConfig which contains configuration i.e nameservers

  • req_name - a Into QDnsName which is target i.e ‘localhost’ or ‘domain.tld’

  • opts - QuerySetup additional options or overrides. Use default() for default values.

Returns

Runs the created query/ies

Returns

Should not panic. MT-safe.

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 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.