pub struct DhcpConfig {
pub ip: Ipv4Addr,
pub prefix_len: u8,
pub gateway: Option<Ipv4Addr>,
pub dns: Option<Ipv4Addr>,
}Expand description
DHCP configuration obtained from server.
Fields§
§ip: Ipv4AddrAssigned IP address
prefix_len: u8Subnet mask as prefix length (e.g., 24 for /24)
gateway: Option<Ipv4Addr>Default gateway
dns: Option<Ipv4Addr>Primary DNS server
Trait Implementations§
Source§impl Clone for DhcpConfig
impl Clone for DhcpConfig
Source§fn clone(&self) -> DhcpConfig
fn clone(&self) -> DhcpConfig
Returns a copy 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
impl Copy for DhcpConfig
Auto Trait Implementations§
impl Freeze for DhcpConfig
impl RefUnwindSafe for DhcpConfig
impl Send for DhcpConfig
impl Sync for DhcpConfig
impl Unpin 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