Enum DeviceKind

Source
#[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,
}
Available on crate feature 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

Source§

fn clone(&self) -> DeviceKind

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DeviceKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for DeviceKind

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<u32> for DeviceKind

Source§

fn from(num: u32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DeviceKind

Source§

fn eq(&self, other: &DeviceKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for DeviceKind

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for DeviceKind

Source§

impl Eq for DeviceKind

Source§

impl StructuralPartialEq for DeviceKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,