AsyncDNSResolver in redis::io - Rust
Description: An async DNS resovler for resolving redis domain.

Skip to main content

## AsyncDNSResolver

# Trait AsyncDNSResolver

Source

    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>>;
    }

Available on crate feature `aio` only.
Expand description

An async DNS resovler for resolving redis domain.

## Required Methods§

Source

#### 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`.

## Implementors§