Enum nmstate::InterfaceType
source · #[non_exhaustive]pub enum InterfaceType {
Show 21 variants
Bond,
LinuxBridge,
Dummy,
Ethernet,
Hsr,
Loopback,
MacVlan,
MacVtap,
OvsBridge,
OvsInterface,
Veth,
Vlan,
Vrf,
Vxlan,
InfiniBand,
Tun,
MacSec,
Ipsec,
Xfrm,
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’.
Hsr
HSR interface. Deserialize and serialize from/to ‘hsr’.
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’.
Tun
TUN interface. Only used for query, will be ignored when applying. Deserialize and serialize from/to ‘tun’.
MacSec
MACsec interface. Deserialize and serialize from/to ‘macsec’
Ipsec
Ipsec connection.
Xfrm
Linux Xfrm kernel interface
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 Hash for InterfaceType
impl Hash for InterfaceType
source§impl Ord for InterfaceType
impl Ord for InterfaceType
source§fn cmp(&self, other: &InterfaceType) -> Ordering
fn cmp(&self, other: &InterfaceType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
source§fn eq(&self, other: &InterfaceType) -> bool
fn eq(&self, other: &InterfaceType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InterfaceType
impl PartialOrd for InterfaceType
source§fn partial_cmp(&self, other: &InterfaceType) -> Option<Ordering>
fn partial_cmp(&self, other: &InterfaceType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for InterfaceType
impl Serialize for InterfaceType
impl Eq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl Freeze for InterfaceType
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.