pub trait ResolveDns:
Debug
+ Send
+ Sync {
// Required method
fn resolve_dns<'a>(&'a self, name: &'a str) -> DnsFuture<'a> ⓘ;
}
Expand description
Trait for resolving domain names
Required Methods§
Sourcefn resolve_dns<'a>(&'a self, name: &'a str) -> DnsFuture<'a> ⓘ
fn resolve_dns<'a>(&'a self, name: &'a str) -> DnsFuture<'a> ⓘ
Asynchronously resolve the given domain name