#[non_exhaustive]pub enum DeviceType {
Show 35 variants
Unknown,
Ethernet,
Wifi,
Unused1,
Unused2,
Bt,
OlpcMesh,
Wimax,
Modem,
Infiniband,
Bond,
Vlan,
Adsl,
Bridge,
Generic,
Team,
Tun,
IpTunnel,
Macvlan,
Vxlan,
Veth,
Macsec,
Dummy,
Ppp,
OvsInterface,
OvsPort,
OvsBridge,
Wpan,
_6lowpan,
Wireguard,
WifiP2p,
Vrf,
Loopback,
Hsr,
Ipvlan,
}Expand description
#NMDeviceType values indicate the type of hardware represented by a device object.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
unknown device
Ethernet
a wired ethernet device
Wifi
an 802.11 Wi-Fi device
Unused1
not used
Unused2
not used
Bt
a Bluetooth device supporting PAN or DUN access protocols
OlpcMesh
an OLPC XO mesh networking device
Wimax
an 802.16e Mobile WiMAX broadband device
Modem
a modem supporting analog telephone, CDMA/EVDO, GSM/UMTS, or LTE network access protocols
Infiniband
an IP-over-InfiniBand device
Bond
a bond controller interface
Vlan
an 802.1Q VLAN interface
Adsl
ADSL modem
Bridge
a bridge controller interface
Generic
generic support for unrecognized device types
Team
a team controller interface
Tun
a TUN or TAP interface
IpTunnel
a IP tunnel interface
Macvlan
a MACVLAN interface
Vxlan
a VXLAN interface
Veth
a VETH interface
Macsec
a MACsec interface
Dummy
a dummy interface
Ppp
a PPP interface
OvsInterface
a Open vSwitch interface
OvsPort
a Open vSwitch port
OvsBridge
a Open vSwitch bridge
Wpan
a IEEE 802.15.4 (WPAN) MAC Layer Device
_6lowpan
6LoWPAN interface
Wireguard
a WireGuard interface
WifiP2p
an 802.11 Wi-Fi P2P device. Since: 1.16.
Vrf
A VRF (Virtual Routing and Forwarding) interface. Since: 1.24.
Loopback
a loopback interface. Since: 1.42.
Hsr
A HSR/PRP device. Since: 1.46.
Ipvlan
A IPVLAN device. Since: 1.52.
Trait Implementations§
Source§impl Clone for DeviceType
impl Clone for DeviceType
Source§fn clone(&self) -> DeviceType
fn clone(&self) -> DeviceType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceType
impl Debug for DeviceType
Source§impl From<DeviceType> for Value
impl From<DeviceType> for Value
Source§fn from(v: DeviceType) -> Self
fn from(v: DeviceType) -> Self
Source§impl<'a> FromValue<'a> for DeviceType
impl<'a> FromValue<'a> for DeviceType
Source§type Checker = GenericValueTypeChecker<DeviceType>
type Checker = GenericValueTypeChecker<DeviceType>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for DeviceType
impl HasParamSpec for DeviceType
type ParamSpec = ParamSpecEnum
Source§type SetValue = DeviceType
type SetValue = DeviceType
type BuilderFn = fn(&str, DeviceType) -> ParamSpecEnumBuilder<'_, DeviceType>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for DeviceType
impl Hash for DeviceType
Source§impl Ord for DeviceType
impl Ord for DeviceType
Source§fn cmp(&self, other: &DeviceType) -> Ordering
fn cmp(&self, other: &DeviceType) -> 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 DeviceType
impl PartialEq for DeviceType
Source§impl PartialOrd for DeviceType
impl PartialOrd for DeviceType
Source§impl StaticType for DeviceType
impl StaticType for DeviceType
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for DeviceType
impl ToValue for DeviceType
Source§impl ValueType for DeviceType
impl ValueType for DeviceType
Source§type Type = DeviceType
type Type = DeviceType
Type from. Read moreimpl Copy for DeviceType
impl Eq for DeviceType
impl StructuralPartialEq for DeviceType
Auto Trait Implementations§
impl Freeze for DeviceType
impl RefUnwindSafe for DeviceType
impl Send for DeviceType
impl Sync for DeviceType
impl Unpin for DeviceType
impl UnwindSafe for DeviceType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.