pub trait Resolve:
Send
+ Sync
+ 'static {
// Required method
fn resolve(
&self,
name: &str,
port: u16,
) -> impl Future<Output = Result<Vec<IpAddr>>> + Send;
}Expand description
Turns a name into addresses. The system’s resolver in use; a scripted one in the tests.
Required Methods§
fn resolve( &self, name: &str, port: u16, ) -> impl Future<Output = Result<Vec<IpAddr>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".