pub struct DhcpLease {
pub server: DhcpServerInfo,
pub address: Ipv4Cidr,
pub router: Option<Ipv4Address>,
pub dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>,
pub options: DhcpLeaseOptions,
}Expand description
A lease obtained from a DHCP server.
Fields§
§server: DhcpServerInfoHow to reach the server that gave the lease.
address: Ipv4CidrThe leased address and its subnet.
router: Option<Ipv4Address>The default gateway, if the server gave one.
dns_servers: Vec<Ipv4Address, DHCP_MAX_DNS_SERVER_COUNT>The DNS servers, if the server gave any.
options: DhcpLeaseOptionsAll options received from the DHCP server.
You may have to ask the server to send the option you’re interested in with DhcpConfig::parameter_request_list.
Trait Implementations§
impl Eq for DhcpLease
impl StructuralPartialEq for DhcpLease
Auto Trait Implementations§
impl Freeze for DhcpLease
impl RefUnwindSafe for DhcpLease
impl Send for DhcpLease
impl Sync for DhcpLease
impl Unpin for DhcpLease
impl UnsafeUnpin for DhcpLease
impl UnwindSafe for DhcpLease
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