pub async fn establish_dnscrypt_session_async(
resolvers: &'static [HardcodedResolver],
) -> Result<Vec<DnscryptClientState>, Error>Available on crate feature
tokio only.Expand description
Establish a DNSCrypt session against the first available resolver in the list asynchronously.
Only available when the tokio feature is enabled.
§Errors
Returns Error::CertificateError if every resolver in resolvers fails
to produce a valid, unexpired certificate (network failure, signature
failure, or a replayed/stale serial number).