pub trait Resolve:
Send
+ Sync
+ 'static {
// Required method
fn resolve<'life0, 'async_trait>(
&'life0 self,
host: Str,
port: u16,
) -> Pin<Box<dyn Future<Output = FredResult<Vec<SocketAddr>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Available on crate feature
dns only.Expand description
A trait that can be used to override DNS resolution logic.
Note: currently this requires async-trait.