Struct trust_dns::config::Config
[−]
[src]
pub struct Config { /* 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 Decodable for Config
[src]
impl Debug for Config
[src]
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