Struct trust_dns::config::Config [] [src]

pub struct Config {
    // some fields omitted
}

Methods

impl Config

fn read_config(path: &Path) -> ConfigResult<Config>

read a Config file from the file specified at path.

fn get_listen_addrs_ipv4(&self) -> Vec<Ipv4Addr>

fn get_listen_addrs_ipv6(&self) -> Vec<Ipv6Addr>

fn get_listen_port(&self) -> u16

fn get_log_level(&self) -> LogLevel

fn get_directory(&self) -> &Path

fn get_zones(&self) -> &[ZoneConfig]

Trait Implementations

impl FromStr for Config

type Err = ConfigError

fn from_str(toml: &str) -> ConfigResult<Config>

Derived Implementations

impl Debug for Config

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Decodable for Config

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Config, __D::Error>