pub struct Config { /* private fields */ }
Expand description

Server configuration

Implementations

read a Config file from the file specified at path.

set of listening ipv4 addresses (for TCP and UDP)

set of listening ipv6 addresses (for TCP and UDP)

port on which to listen for connections on specified addresses

port on which to listen for TLS connections

port on which to listen for HTTPS connections

default timeout for all TCP connections before forceably shutdown

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

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

the set of zones which should be loaded

the tls certificate to use for accepting tls connections

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

The associated error which can be returned from parsing.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more