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
sourceimpl Clone for InterfaceType
impl Clone for InterfaceType
sourcefn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InterfaceType
impl Debug for InterfaceType
sourceimpl Default for InterfaceType
impl Default for InterfaceType
sourceimpl<'de> Deserialize<'de> for InterfaceType
impl<'de> Deserialize<'de> for InterfaceType
sourcefn 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>,
sourceimpl Display for InterfaceType
impl Display for InterfaceType
sourceimpl From<&str> for InterfaceType
impl From<&str> for InterfaceType
sourceimpl Hash for InterfaceType
impl Hash for InterfaceType
sourceimpl PartialEq<InterfaceType> for InterfaceType
impl PartialEq<InterfaceType> for InterfaceType
sourcefn eq(&self, other: &InterfaceType) -> bool
fn eq(&self, other: &InterfaceType) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.