Trait IpOrHostExt
pub trait IpOrHostExt {
// Required method
fn resolve_tokio(
self,
) -> impl Future<Output = Result<Vec<SocketAddr>, Error>> + Send;
}Expand description
Runtime-specific extensions for IpOrHost.
Required Methods§
fn resolve_tokio(
self,
) -> impl Future<Output = Result<Vec<SocketAddr>, Error>> + Send
fn resolve_tokio( self, ) -> impl Future<Output = Result<Vec<SocketAddr>, Error>> + Send
Tries to resolve the DNS name and returns all IP addresses found. If this is already an IP address and port, it will simply return it.
Uses tokio resolver.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl IpOrHostExt for IpOrHost
Available on crate feature
network-types-runtime-tokio only.