pub struct HostNetworkSnapshot {
pub lan_ipv4: Option<Ipv4Addr>,
pub observed_at_ms: i64,
}Fields§
§lan_ipv4: Option<Ipv4Addr>§observed_at_ms: i64Implementations§
Source§impl HostNetworkSnapshot
impl HostNetworkSnapshot
pub fn available_ipv4(&self, now_ms: i64) -> Option<Ipv4Addr>
Trait Implementations§
Source§impl Clone for HostNetworkSnapshot
impl Clone for HostNetworkSnapshot
Source§impl Debug for HostNetworkSnapshot
impl Debug for HostNetworkSnapshot
Source§impl Default for HostNetworkSnapshot
impl Default for HostNetworkSnapshot
Source§impl<'de> Deserialize<'de> for HostNetworkSnapshot
impl<'de> Deserialize<'de> for HostNetworkSnapshot
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 HostNetworkSnapshot
Source§impl PartialEq for HostNetworkSnapshot
impl PartialEq for HostNetworkSnapshot
Source§impl Serialize for HostNetworkSnapshot
impl Serialize for HostNetworkSnapshot
impl StructuralPartialEq for HostNetworkSnapshot
Auto Trait Implementations§
impl Freeze for HostNetworkSnapshot
impl RefUnwindSafe for HostNetworkSnapshot
impl Send for HostNetworkSnapshot
impl Sync for HostNetworkSnapshot
impl Unpin for HostNetworkSnapshot
impl UnsafeUnpin for HostNetworkSnapshot
impl UnwindSafe for HostNetworkSnapshot
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