pub trait Resolver:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn resolve(
&self,
host: &str,
) -> Pin<Box<dyn Future<Output = Result<IntoIter<SocketAddr>, Error>> + Send>>;
}pub trait Resolver:
Send
+ Sync
+ Debug
+ 'static {
// Required method
fn resolve(
&self,
host: &str,
) -> Pin<Box<dyn Future<Output = Result<IntoIter<SocketAddr>, Error>> + Send>>;
}