dnsclient 0.2.0

A small, simple and secure DNS client library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::net::SocketAddr;

#[derive(Clone, Debug)]
pub struct UpstreamServer {
    pub addr: SocketAddr,
}

impl UpstreamServer {
    pub fn new<T: Into<SocketAddr>>(addr: T) -> Self {
        UpstreamServer { addr: addr.into() }
    }
}