encrypted-dns 0.1.2

A modern encrypted DNS server (DNSCrypt, Anonymized DNSCrypt, DoH)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use failure::{bail, ensure, Error};
use privdrop::PrivDropError;
use std::io;
use std::net::AddrParseError;

#[derive(Debug, Fail)]
pub enum ProxyError {
    #[fail(display = "Internal error: [{}]", _0)]
    InternalError(String),
    #[fail(display = "I/O error: [{}]", _0)]
    Io(#[cause] io::Error),
    #[fail(display = "Unable to parse address: [{}]", _0)]
    AddrParseError(#[cause] AddrParseError),
    #[fail(display = "Privilege drop error: [{}]", _0)]
    PrivDrop(#[cause] PrivDropError),
}