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

pub struct Config {
    // some fields omitted
}

Methods

impl Config
[src]

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 Debug for Config
[src]

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

Formats the value using the given formatter.

impl Decodable for Config
[src]

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

impl FromStr for Config
[src]

type Err = ConfigError

The associated error which can be returned from parsing.

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

Parses a string s to return a value of this type. Read more