pub trait DnsResolver:
Send
+ Sync
+ 'static {
// Required method
fn resolve(
&self,
ctx: CallContext,
host: String,
port: u16,
) -> BoxFuture<Result<Vec<SocketAddr>, WireError>>;
}Required Methods§
fn resolve( &self, ctx: CallContext, host: String, port: u16, ) -> BoxFuture<Result<Vec<SocketAddr>, WireError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".