Struct nmstate::VlanInterface
source · #[non_exhaustive]pub struct VlanInterface {
pub base: BaseInterface,
pub vlan: Option<VlanConfig>,
}
Expand description
Linux kernel VLAN interface. The example yaml output of crate::NetworkState with a VLAN interface would be:
interfaces:
- name: eth1.101
type: vlan
state: up
mac-address: BE:E8:17:8F:D2:70
mtu: 1500
max-mtu: 65535
wait-ip: any
ipv4:
enabled: false
ipv6:
enabled: false
accept-all-mac-addresses: false
vlan:
base-iface: eth1
id: 101
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.base: BaseInterface
§vlan: Option<VlanConfig>
Implementations§
source§impl VlanInterface
impl VlanInterface
Trait Implementations§
source§impl Clone for VlanInterface
impl Clone for VlanInterface
source§fn clone(&self) -> VlanInterface
fn clone(&self) -> VlanInterface
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VlanInterface
impl Debug for VlanInterface
source§impl Default for VlanInterface
impl Default for VlanInterface
source§impl<'de> Deserialize<'de> for VlanInterface
impl<'de> Deserialize<'de> for VlanInterface
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<VlanInterface> for VlanInterface
impl PartialEq<VlanInterface> for VlanInterface
source§fn eq(&self, other: &VlanInterface) -> bool
fn eq(&self, other: &VlanInterface) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for VlanInterface
impl Serialize for VlanInterface
impl Eq for VlanInterface
impl StructuralEq for VlanInterface
impl StructuralPartialEq for VlanInterface
Auto Trait Implementations§
impl RefUnwindSafe for VlanInterface
impl Send for VlanInterface
impl Sync for VlanInterface
impl Unpin for VlanInterface
impl UnwindSafe for VlanInterface
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.