pub struct NetInterface {
pub mac_address: Option<String>,
pub subnets: Option<Vec<NetAddress>>,
}
Available on crate feature
v5
only.Expand description
NetInterface contains the settings for a given network interface.
Fields§
§mac_address: Option<String>
MacAddress for this Interface.
subnets: Option<Vec<NetAddress>>
Subnets list of assigned subnets with their gateway.
Trait Implementations§
Source§impl Debug for NetInterface
impl Debug for NetInterface
Source§impl Default for NetInterface
impl Default for NetInterface
Source§fn default() -> NetInterface
fn default() -> NetInterface
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetInterface
impl<'de> Deserialize<'de> for NetInterface
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
Auto Trait Implementations§
impl Freeze for NetInterface
impl RefUnwindSafe for NetInterface
impl Send for NetInterface
impl Sync for NetInterface
impl Unpin for NetInterface
impl UnwindSafe for NetInterface
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