pub struct Config {
pub path: PathBuf,
pub lease_time: LeaseTime,
pub rapid_commit: bool,
pub network_cidr: Ipv4Network,
pub listen_address: SocketAddrV4,
pub interface: Option<String>,
pub server_address: Option<Ipv4Addr>,
pub parameters: HashMap<String, MessageOptions>,
}Expand description
Representation of a toe-beans.toml file. Used by the Server.
This is exported for you to use in your application to generate a toe-beans.toml.
Fields§
§path: PathBufThe path to a directory where this config will exist on disk.
lease_time: LeaseTimeSee: LeaseTime
rapid_commit: boolControls whether the server agrees to use Rapid Commit.
network_cidr: Ipv4NetworkA range of IP addresses for the server to lease. Specified in CIDR notation. For example: 10.1.9.32/16
listen_address: SocketAddrV4The server will bind to this address and port.
interface: Option<String>The name of the network interface to broadcast server responses to. Currently only takes one interface.
server_address: Option<Ipv4Addr>May or may not match the IP address in listen_address.
For example, you might be listening to 0.0.0.0, but your server has another address it can be reached from.
This is used in both the siaddr field and ServerIdentifier option.
If None, then listen_address is used.
parameters: HashMap<String, MessageOptions>DHCP option numbers (as a String) mapped to values that are used to respond to parameter request list options Please note that this field, in particular, is subject to change.