pub struct DhcpLease {
pub expires_in: Duration,
pub server: Option<IpAddr>,
}Expand description
Summary of the active DHCP lease on the IPv4 address.
Fields§
§expires_in: DurationRemaining lease time. Computed from valid_lft at inventory time.
server: Option<IpAddr>The DHCP server that granted the lease, when known. Not surfaced by
ip -j; requires NM or reading dhclient leases.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DhcpLease
impl<'de> Deserialize<'de> for DhcpLease
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
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