Struct cdns_rs::a_sync::query::QDns [−][src]
pub struct QDns {}Implementations
pub async fn query_optional(
name: QDnsName<'_>,
qtype: QType,
opts: QuerySetup
) -> CDnsResult<QDnsQueriesRes>
pub async 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.