Trait rama::dns::DnsResolver
pub trait DnsResolver:
Send
+ Sync
+ 'static {
type Error;
// Required methods
fn ipv4_lookup(
&self,
domain: Domain,
) -> impl Future<Output = Result<Vec<Ipv4Addr>, Self::Error>> + Send;
fn ipv6_lookup(
&self,
domain: Domain,
) -> impl Future<Output = Result<Vec<Ipv6Addr>, Self::Error>> + Send;
}
Expand description
A resolver of domains into IP addresses.
Required Associated Types§
type Error
type Error
Error returned by the DnsResolver
Required Methods§
Object Safety§
This trait is not object safe.