pub struct ClientConfig {
pub client_hardware_address: Mac,
pub client_identifier: Option<AtLeast<2, AtMostBytes<{ dhcp_protocol::U8_MAX_AS_USIZE }, Vec<u8>>>>,
pub requested_parameters: OptionCodeMap<OptionRequested>,
pub preferred_lease_time_secs: Option<NonZeroU32>,
pub requested_ip_address: Option<SpecifiedAddr<Ipv4Addr>>,
pub debug_log_prefix: DebugLogPrefix,
}
Expand description
Configuration for the DHCP client to be used while negotiating with DHCP servers.
Fields§
§client_hardware_address: Mac
The hardware address of the interface on which the DHCP client is run.
client_identifier: Option<AtLeast<2, AtMostBytes<{ dhcp_protocol::U8_MAX_AS_USIZE }, Vec<u8>>>>
If set, a unique-on-the-local-network string to be used to identify this device while negotiating with DHCP servers.
requested_parameters: OptionCodeMap<OptionRequested>
Parameters to request from DHCP servers.
preferred_lease_time_secs: Option<NonZeroU32>
If set, the preferred IP address lease time in seconds.
requested_ip_address: Option<SpecifiedAddr<Ipv4Addr>>
If set, the IP address to request from DHCP servers.
debug_log_prefix: DebugLogPrefix
Debug information to include in log messages about the client.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)