#[repr(u8)]pub enum InterfaceKind {
Show 34 variants
Loopback = 0,
TcpClient = 1,
TcpServer = 2,
Udp = 3,
Serial = 4,
UsbAutoHost = 5,
UsbAutoDevice = 6,
AutoWifi = 7,
WifiPeer = 8,
LocalServer = 9,
LocalClient = 10,
TcpServerPeer = 11,
BluetoothAuto = 12,
BluetoothPeer = 13,
LoRa = 14,
Kiss = 15,
Ax25Kiss = 16,
Pipe = 17,
Rnode = 18,
BackboneServer = 19,
BackboneServerPeer = 20,
BackboneClient = 21,
EspNow = 22,
WebSocketClient = 23,
WebSocketServer = 24,
WebSocketServerPeer = 25,
WifiDirect = 26,
WifiDirectPeer = 27,
WifiAware = 28,
WifiAwarePeer = 29,
I2p = 30,
I2pPeer = 31,
Weave = 32,
WeavePeer = 33,
}Variants§
Loopback = 0
TcpClient = 1
TcpServer = 2
Udp = 3
Serial = 4
UsbAutoHost = 5
UsbAutoDevice = 6
AutoWifi = 7
WifiPeer = 8
LocalServer = 9
LocalClient = 10
TcpServerPeer = 11
BluetoothAuto = 12
BluetoothPeer = 13
LoRa = 14
Kiss = 15
Ax25Kiss = 16
Pipe = 17
Rnode = 18
BackboneServer = 19
BackboneServerPeer = 20
BackboneClient = 21
EspNow = 22
WebSocketClient = 23
WebSocketServer = 24
WebSocketServerPeer = 25
WifiDirect = 26
WifiDirectPeer = 27
WifiAware = 28
WifiAwarePeer = 29
I2p = 30
I2pPeer = 31
Weave = 32
WeavePeer = 33
Implementations§
Source§impl InterfaceKind
impl InterfaceKind
pub const ALL: [InterfaceKind; 34]
pub const fn from_u8(byte: u8) -> Option<InterfaceKind>
pub const fn name(self) -> &'static str
pub const fn member_kind(self) -> Option<InterfaceKind>
pub const fn supervisor_kind(self) -> Option<InterfaceKind>
Trait Implementations§
Source§impl Clone for InterfaceKind
impl Clone for InterfaceKind
Source§fn clone(&self) -> InterfaceKind
fn clone(&self) -> InterfaceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InterfaceKind
Source§impl Debug for InterfaceKind
impl Debug for InterfaceKind
impl Eq for InterfaceKind
Source§impl Hash for InterfaceKind
impl Hash for InterfaceKind
Source§impl PartialEq for InterfaceKind
impl PartialEq for InterfaceKind
impl StructuralPartialEq for InterfaceKind
Auto Trait Implementations§
impl Freeze for InterfaceKind
impl RefUnwindSafe for InterfaceKind
impl Send for InterfaceKind
impl Sync for InterfaceKind
impl Unpin for InterfaceKind
impl UnsafeUnpin for InterfaceKind
impl UnwindSafe for InterfaceKind
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
Mutably borrows from an owned value. Read more