pub trait AsyncDNSResolver:
Send
+ Sync
+ 'static {
// Required method
fn resolve<'a, 'b: 'a>(
&'a self,
host: &'b str,
port: u16,
) -> RedisFuture<'a, Box<dyn Iterator<Item = SocketAddr> + Send + 'a>>;
}
Expand description
An async DNS resovler for resolving redis domain.
Required Methods§
Sourcefn resolve<'a, 'b: 'a>(
&'a self,
host: &'b str,
port: u16,
) -> RedisFuture<'a, Box<dyn Iterator<Item = SocketAddr> + Send + 'a>>
fn resolve<'a, 'b: 'a>( &'a self, host: &'b str, port: u16, ) -> RedisFuture<'a, Box<dyn Iterator<Item = SocketAddr> + Send + 'a>>
Resolves the host and port to a list of SocketAddr
.