pub struct NetworkIdentity {
pub ip: IpAddr,
pub prefix_len: u8,
pub gateway: IpAddr,
pub dns: Vec<IpAddr>,
pub mac: MacAddr,
}Expand description
The network as the guest sees it.
Fields§
§ip: IpAddrThe guest’s address.
prefix_len: u8The subnet prefix length.
gateway: IpAddrThe gateway the guest routes through.
dns: Vec<IpAddr>Resolvers the guest should use.
mac: MacAddrThe guest’s MAC address.
Trait Implementations§
Source§impl Clone for NetworkIdentity
impl Clone for NetworkIdentity
Source§impl Debug for NetworkIdentity
impl Debug for NetworkIdentity
Source§impl<'de> Deserialize<'de> for NetworkIdentity
impl<'de> Deserialize<'de> for NetworkIdentity
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 NetworkIdentity
Source§impl PartialEq for NetworkIdentity
impl PartialEq for NetworkIdentity
Source§impl Serialize for NetworkIdentity
impl Serialize for NetworkIdentity
impl StructuralPartialEq for NetworkIdentity
Auto Trait Implementations§
impl Freeze for NetworkIdentity
impl RefUnwindSafe for NetworkIdentity
impl Send for NetworkIdentity
impl Sync for NetworkIdentity
impl Unpin for NetworkIdentity
impl UnsafeUnpin for NetworkIdentity
impl UnwindSafe for NetworkIdentity
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.