#[non_exhaustive]pub struct IfaceConf {
pub name: String,
pub state: IfaceState,
pub iface_type: Option<IfaceType>,
pub controller: Option<String>,
pub ipv4: Option<IpConf>,
pub ipv6: Option<IpConf>,
pub mac_address: Option<String>,
pub veth: Option<VethConf>,
pub bridge: Option<BridgeConf>,
pub vlan: Option<VlanConf>,
pub bond: Option<BondConf>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
§state: IfaceState
§iface_type: Option<IfaceType>
§controller: Option<String>
§ipv4: Option<IpConf>
§ipv6: Option<IpConf>
§mac_address: Option<String>
§veth: Option<VethConf>
§bridge: Option<BridgeConf>
§vlan: Option<VlanConf>
§bond: Option<BondConf>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for IfaceConf
impl<'de> Deserialize<'de> for IfaceConf
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
source§impl PartialEq for IfaceConf
impl PartialEq for IfaceConf
impl Eq for IfaceConf
impl StructuralPartialEq for IfaceConf
Auto Trait Implementations§
impl Freeze for IfaceConf
impl RefUnwindSafe for IfaceConf
impl Send for IfaceConf
impl Sync for IfaceConf
impl Unpin for IfaceConf
impl UnwindSafe for IfaceConf
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