[−][src]Struct trust_dns_server::config::Config
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.
fn from_str(toml: &str) -> ConfigResult<Config>
[src]
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,