Struct cdns_rs::sync::query::QDns [−][src]
pub struct QDns {}
Implementations
pub fn query_optional(
name: QDnsName<'_>,
qtype: QType,
opts: QuerySetup
) -> CDnsResult<QDnsQueriesRes>
pub fn query_optional(
name: QDnsName<'_>,
qtype: QType,
opts: QuerySetup
) -> CDnsResult<QDnsQueriesRes>
Performes a query of the requested type with requested settings.
Arguments
-
name
- QDnsName an item to look i.e IP or Domain name -
qtypr
- QType a request type -
opts
- QuerySetup an additional setup
Returns
-
CDnsResult with QDnsQueriesRes which may contain data
-
CDnsResult with error
Should not panic. MT-safe.
Performes a query of the requested type with default settings.
Arguments
Returns
-
CDnsResult with QDnsQueriesRes which may contain data
-
CDnsResult with error
Should not panic. MT-safe.