CreateResolver

Trait CreateResolver 

Source
pub trait CreateResolver {
    type Resolver: 'static + Clone + Send + Sync + Service<Name, Error = Self::Error, Future = Self::Future, Response = Self::Response>;
    type Error: 'static + Send + Sync + Error;
    type Future: Send + Future<Output = Result<Self::Response, Self::Error>>;
    type Response: Iterator<Item = SocketAddr>;

    // Required method
    fn create_resolver() -> Self::Resolver;
}
Expand description

A trait used to create a DNS resolver. DefaultResolver uses the default DNS resolver built into hyper.

Required Associated Types§

Source

type Resolver: 'static + Clone + Send + Sync + Service<Name, Error = Self::Error, Future = Self::Future, Response = Self::Response>

Source

type Error: 'static + Send + Sync + Error

Source

type Future: Send + Future<Output = Result<Self::Response, Self::Error>>

Source

type Response: Iterator<Item = SocketAddr>

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§