HTypes

Enum HTypes 

Source
#[repr(u8)]
pub enum HTypes {
Show 39 variants Ethernet, ExperimentalEthernet, AmateurRadio, ProteonTokenRing, Chaos, IEEE802, ARCNET, Hyperchannel, Lanstar, AutonetShortAddress, LocalTalk, LocalNet, UltraLink, SMDS, FrameRelay, ATM16, HDLC, FibreChannel, ATM19, SerialLine, ATM21, MILSTD188220, Metricom, IEEE13941995, MAPOS, Twinaxial, EUI64, HIPARP, IPARPISO78163, ARPSec, IPsecTunnel, InfiniBand, CommonAirInterface, WiegandInterface, PureIP, HWEXP1, HFI, UnifiedBus, Other(u8),
}
Expand description

Variants of a htype field in Message.

See the full IANA list.

Variants§

§

Ethernet

1

§

ExperimentalEthernet

2

§

AmateurRadio

3

§

ProteonTokenRing

4

§

Chaos

5

§

IEEE802

6

§

ARCNET

7

§

Hyperchannel

8

§

Lanstar

9

§

AutonetShortAddress

10

§

LocalTalk

11

§

LocalNet

12

13

§

SMDS

14

§

FrameRelay

15

§

ATM16

16

§

HDLC

17

§

FibreChannel

18

§

ATM19

19

§

SerialLine

20

§

ATM21

21

§

MILSTD188220

22

§

Metricom

23

§

IEEE13941995

24

§

MAPOS

25

§

Twinaxial

26

§

EUI64

27

§

HIPARP

28

§

IPARPISO78163

29

§

ARPSec

30

§

IPsecTunnel

31

§

InfiniBand

32

§

CommonAirInterface

33

§

WiegandInterface

34

§

PureIP

35

§

HWEXP1

36

§

HFI

37

§

UnifiedBus

38

§

Other(u8)

0 is Reserved 39-255 are Unassigned

Trait Implementations§

Source§

impl Debug for HTypes

Source§

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

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

impl From<&HTypes> for u8

Source§

fn from(htypes: &HTypes) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for HTypes

Source§

fn from(byte: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for HTypes

Source§

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

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

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 StructuralPartialEq for HTypes

Auto Trait Implementations§

§

impl Freeze for HTypes

§

impl RefUnwindSafe for HTypes

§

impl Send for HTypes

§

impl Sync for HTypes

§

impl Unpin for HTypes

§

impl UnwindSafe for HTypes

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V