#[repr(u32)]pub enum DeviceKind {
Show 32 variants
Unknown = 0,
Generic = 14,
Ethernet = 1,
Wifi = 2,
Unused1 = 3,
Unused2 = 4,
Bt = 5,
OlpcMesh = 6,
Wimax = 7,
Modem = 8,
Infiniband = 9,
Bond = 10,
Vlan = 11,
Adsl = 12,
Bridge = 13,
Team = 15,
Tun = 16,
IpTunnel = 17,
Macvlan = 18,
Vxlan = 19,
Veth = 20,
Macsec = 21,
Dummy = 22,
Ppp = 23,
OvsInterface = 24,
OvsPort = 25,
OvsBridge = 26,
Wpan = 27,
SixLowPan = 28,
Wireguard = 29,
WifiP2p = 30,
Vrf = 31,
}
network
only.Variants§
Unknown = 0
unknown device
Generic = 14
generic support for unrecognized device types
Ethernet = 1
a wired ethernet device
Wifi = 2
an 802.11 Wi-Fi device
Unused1 = 3
not used
Unused2 = 4
not used
Bt = 5
a Bluetooth device supporting PAN or DUN access protocols
OlpcMesh = 6
an OLPC XO mesh networking device
Wimax = 7
an 802.16e Mobile WiMAX broadband device
Modem = 8
a modem supporting analog telephone, CDMA/EVDO, GSM/UMTS, or LTE network access protocols
Infiniband = 9
an IP-over-InfiniBand device
Bond = 10
a bond master interface
Vlan = 11
an 802.1Q VLAN interface
Adsl = 12
ADSL modem
Bridge = 13
a bridge master interface
Team = 15
a team master interface
Tun = 16
a TUN or TAP interface
IpTunnel = 17
a IP tunnel interface
Macvlan = 18
a MACVLAN interface
Vxlan = 19
a VXLAN interface
Veth = 20
a VETH interface
Macsec = 21
a MACsec interface
Dummy = 22
a dummy interface
Ppp = 23
a PPP interface
OvsInterface = 24
a Open vSwitch interface
OvsPort = 25
a Open vSwitch port
OvsBridge = 26
a Open vSwitch bridge
Wpan = 27
a IEEE 802.15.4 (WPAN) MAC Layer Device
SixLowPan = 28
6LoWPAN interface
Wireguard = 29
a WireGuard interface
WifiP2p = 30
an 802.11 Wi-Fi P2P device. Since: 1.16.
Vrf = 31
A VRF (Virtual Routing and Forwarding) interface. Since: 1.24.
Trait Implementations§
Source§impl Clone for DeviceKind
impl Clone for DeviceKind
Source§fn clone(&self) -> DeviceKind
fn clone(&self) -> DeviceKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more