pub fn new<N, S>(name: N, servers: S, port: u16, method: QueryMethod) -> Self
    where
        N: Into<Cow<'r, str>>,
        S: Into<Cow<'r, [IpAddr]>>,
    {
        Self {
            port,
            name: name.into(),
            servers: servers.into(),
            method,
        }
    }
/// Create a new DNS resolver.
Create a new DNS resolver.
Create a new DNS resolver .
pub fn new<N, S>(name: N, servers: S, port: u16, method: QueryMethod) -> Self
    where
        N: Into<Cow<'r, str>>,
        S: Into<Cow<'r, [IpAddr]>>,
    {
        Self {
            port,
            name: name.into(),
            servers: servers.into(),
            method,
        }
    }
pub fn new < N , S > ( name : N , servers : S , port : u16 , method : QueryMethod ) -> Self where N : Into < Cow < ' r , str > > , S : Into < Cow < ' r , [ IpAddr ] > > , { Self { port , name : name . into ( ) , servers : servers . into ( ) , method , } }
Create a new DNS resolver.
Create a new DNS resolver .
name
N
servers
S
port
u16
method
QueryMethod