Enum nmstate::InterfaceType
source · #[non_exhaustive]
pub enum InterfaceType {
Show 16 variants
Bond,
LinuxBridge,
Dummy,
Ethernet,
Loopback,
MacVlan,
MacVtap,
OvsBridge,
OvsInterface,
Veth,
Vlan,
Vrf,
Vxlan,
InfiniBand,
Unknown,
Other(String),
}
Expand description
Interface type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Bond
Bond interface Deserialize and serialize from/to ‘bond’
LinuxBridge
Bridge provided by Linux kernel. Deserialize and serialize from/to ‘linux-bridge’.
Dummy
Dummy interface. Deserialize and serialize from/to ‘dummy’.
Ethernet
Ethernet interface. Deserialize and serialize from/to ‘ethernet’.
Loopback
Loopback interface. Deserialize and serialize from/to ‘loopback’.
MacVlan
MAC VLAN interface. Deserialize and serialize from/to ‘mac-vlan’.
MacVtap
MAC VTAP interface. Deserialize and serialize from/to ‘mac-vtap’.
OvsBridge
OpenvSwitch bridge. Deserialize and serialize from/to ‘ovs-bridge’.
OvsInterface
OpenvSwitch system interface. Deserialize and serialize from/to ‘ovs-interface’.
Veth
Virtual ethernet provide by Linux kernel. Deserialize and serialize from/to ‘veth’.
Vlan
VLAN interface. Deserialize and serialize from/to ‘vlan’.
Vrf
Virtual Routing and Forwarding interface Deserialize and serialize from/to ‘vrf’.
Vxlan
VxVLAN interface. Deserialize and serialize from/to ‘vxlan’.
InfiniBand
IP over InfiniBand interface Deserialize and serialize from/to ‘infiniband’.
Unknown
Unknown interface.
Other(String)
Reserved for future use.
Trait Implementations§
source§impl Clone for InterfaceType
impl Clone for InterfaceType
source§fn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InterfaceType
impl Debug for InterfaceType
source§impl Default for InterfaceType
impl Default for InterfaceType
source§impl<'de> Deserialize<'de> for InterfaceType
impl<'de> Deserialize<'de> for InterfaceType
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>,
source§impl Display for InterfaceType
impl Display for InterfaceType
source§impl From<&str> for InterfaceType
impl From<&str> for InterfaceType
source§impl Hash for InterfaceType
impl Hash for InterfaceType
source§impl PartialEq<InterfaceType> for InterfaceType
impl PartialEq<InterfaceType> for InterfaceType
source§fn eq(&self, other: &InterfaceType) -> bool
fn eq(&self, other: &InterfaceType) -> bool
source§impl Serialize for InterfaceType
impl Serialize for InterfaceType
impl Eq for InterfaceType
impl StructuralEq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
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
key
and return true
if they are equal.