pub struct DhcpConfig {
pub enabled: bool,
pub range_start: Option<Ipv4Addr>,
pub range_stop: Option<Ipv4Addr>,
pub lease_time_secs: Option<u64>,
pub dns_servers: Vec<IpAddr>,
pub gateway: Option<Ipv4Addr>,
}Expand description
DHCP server configuration.
Fields§
§enabled: bool§range_start: Option<Ipv4Addr>§range_stop: Option<Ipv4Addr>§lease_time_secs: Option<u64>§dns_servers: Vec<IpAddr>§gateway: Option<Ipv4Addr>Trait Implementations§
Source§impl Clone for DhcpConfig
impl Clone for DhcpConfig
Source§fn clone(&self) -> DhcpConfig
fn clone(&self) -> DhcpConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DhcpConfig
impl Debug for DhcpConfig
Source§impl<'de> Deserialize<'de> for DhcpConfig
impl<'de> Deserialize<'de> for DhcpConfig
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 DhcpConfig
impl RefUnwindSafe for DhcpConfig
impl Send for DhcpConfig
impl Sync for DhcpConfig
impl Unpin for DhcpConfig
impl UnsafeUnpin for DhcpConfig
impl UnwindSafe for DhcpConfig
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