pub struct InnerServerConfig {
pub rapid_commit: bool,
pub server_address: Option<Ipv4Addr>,
pub parameters: HashMap<u8, MessageOptions>,
}Expand description
Configuration used specifically within a Server.
This differs from ServerConfig which bundles many configs, including:
’InnerServerConfig, SocketConfig, and LeasesConfig`.
Fields§
§rapid_commit: boolControls whether the server agrees to use Rapid Commit.
server_address: Option<Ipv4Addr>May or may not match the IP address in SocketConfig.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<u8, MessageOptions>DHCP option numbers (as a String) mapped to values that are used to respond to parameter request list options
Trait Implementations§
Source§impl Debug for InnerServerConfig
impl Debug for InnerServerConfig
Source§impl Default for InnerServerConfig
impl Default for InnerServerConfig
Source§impl<'de> Deserialize<'de> for InnerServerConfig
impl<'de> Deserialize<'de> for InnerServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InnerServerConfig
impl RefUnwindSafe for InnerServerConfig
impl Send for InnerServerConfig
impl Sync for InnerServerConfig
impl Unpin for InnerServerConfig
impl UnsafeUnpin for InnerServerConfig
impl UnwindSafe for InnerServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more