[][src]Struct trust_dns_server::config::Config

pub struct Config { /* fields omitted */ }

Server configuration

Methods

impl Config[src]

pub fn read_config(path: &Path) -> ConfigResult<Config>[src]

read a Config file from the file specified at path.

pub fn get_listen_addrs_ipv4(&self) -> Vec<Ipv4Addr>[src]

set of listening ipv4 addresses (for TCP and UDP)

pub fn get_listen_addrs_ipv6(&self) -> Vec<Ipv6Addr>[src]

set of listening ipv6 addresses (for TCP and UDP)

pub fn get_listen_port(&self) -> u16[src]

port on which to listen for connections on specified addresses

pub fn get_tls_listen_port(&self) -> u16[src]

port on which to listen for TLS connections

pub fn get_https_listen_port(&self) -> u16[src]

port on which to listen for HTTPS connections

pub fn get_tcp_request_timeout(&self) -> Duration[src]

default timeout for all TCP connections before forceably shutdown

pub fn get_log_level(&self) -> Level[src]

specify the log level which should be used, ["Trace", "Debug", "Info", "Warn", "Error"]

pub fn get_directory(&self) -> &Path[src]

the path for all zone configurations, defaults to /var/named

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

the set of zones which should be loaded

pub fn get_tls_cert(&self) -> Option<&TlsCertConfig>[src]

the tls certificate to use for accepting tls connections

Trait Implementations

impl Debug for Config[src]

impl FromStr for Config[src]

type Err = ConfigError

The associated error which can be returned from parsing.

impl<'de> Deserialize<'de> for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T