pub struct NewlyAcquiredLease<I> {
pub ip_address: SpecifiedAddr<Ipv4Addr>,
pub start_time: I,
pub lease_time: Duration,
pub parameters: Vec<DhcpOption>,
}
Expand description
A newly-acquired DHCP lease.
Fields§
§ip_address: SpecifiedAddr<Ipv4Addr>
The IP address acquired.
start_time: I
The start time of the lease.
lease_time: Duration
The length of the lease.
parameters: Vec<DhcpOption>
Configuration parameters acquired from the server. Guaranteed to be a
subset of the parameters requested in the parameter_request_list
in
ClientConfig
.
Trait Implementations§
Source§impl<I: Debug> Debug for NewlyAcquiredLease<I>
impl<I: Debug> Debug for NewlyAcquiredLease<I>
Source§impl<I: PartialEq> PartialEq for NewlyAcquiredLease<I>
impl<I: PartialEq> PartialEq for NewlyAcquiredLease<I>
impl<I> StructuralPartialEq for NewlyAcquiredLease<I>
Auto Trait Implementations§
impl<I> Freeze for NewlyAcquiredLease<I>where
I: Freeze,
impl<I> RefUnwindSafe for NewlyAcquiredLease<I>where
I: RefUnwindSafe,
impl<I> Send for NewlyAcquiredLease<I>where
I: Send,
impl<I> Sync for NewlyAcquiredLease<I>where
I: Sync,
impl<I> Unpin for NewlyAcquiredLease<I>where
I: Unpin,
impl<I> UnwindSafe for NewlyAcquiredLease<I>where
I: UnwindSafe,
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