Struct ArpHardwareId

Source
pub struct ArpHardwareId(pub u16);
Expand description

Represents an ARP protocol hardware identifier.

You can access the underlying u16 value by using .0 and any u16 can be converted to an ArpHardwareId:

use etherparse::ArpHardwareId;

assert_eq!(ArpHardwareId::ETHERNET.0, 0x0001);
assert_eq!(ArpHardwareId::ETHERNET, ArpHardwareId(0x0001));

// convert to ArpHardwareId using the from & into trait
let arp_hrd_id: ArpHardwareId = 0x0001.into();
assert_eq!(ArpHardwareId::ETHERNET, arp_hrd_id);

// convert to u16 using the from & into trait
let num: u16 = ArpHardwareId::ETHERNET.into();
assert_eq!(0x0001, num);

Tuple Fields§

§0: u16

Implementations§

Source§

impl ArpHardwareId

Source

pub const NETROM: ArpHardwareId

Reserved

Source

pub const ETHERNET: ArpHardwareId

Ethernet (10Mb)

Source

pub const ETHER: ArpHardwareId

👎Deprecated since 0.17.0: Use ArpHardwareId::ETHERNET instead

Deprecated use ArpHardwareId::ETHERNET instead

Source

pub const EETHER: ArpHardwareId

Experimental Ethernet (3Mb)

Source

pub const AX25: ArpHardwareId

Amateur Radio AX.25

Source

pub const PRONET: ArpHardwareId

Proteon ProNET Token Ring

Source

pub const CHAOS: ArpHardwareId

Chaos

Source

pub const IEEE802: ArpHardwareId

IEEE 802 Networks

Source

pub const ARCNET: ArpHardwareId

ARCNET

Source

pub const HYPERCHANNEL: ArpHardwareId

Hyperchannel

Source

pub const APPLETLK: ArpHardwareId

APPLEtalk

Source

pub const LANSTAR: ArpHardwareId

Lanstar

Source

pub const AUTONET_SHORT_ADDRESS: ArpHardwareId

Autonet Short Address

Source

pub const LOCAL_TALK: ArpHardwareId

LocalTalk

Source

pub const LOCAL_NET: ArpHardwareId

LocalNet (IBM PCNet or SYTEK LocalNET)

Ultra link

Source

pub const SMDS: ArpHardwareId

SMDS

Source

pub const DLCI: ArpHardwareId

DLCI (alias for ArpHardwareId::FRAME_RELAY)

Source

pub const FRAME_RELAY: ArpHardwareId

Frame Relay (alias for ArpHardwareId::DLCI)

Source

pub const ATM_JXB2: ArpHardwareId

Asynchronous Transmission Mode (ATM) [JXB2]

Source

pub const HDLC: ArpHardwareId

HDLC

Source

pub const FIBRE_CHANNEL: ArpHardwareId

Fibre Channel

Source

pub const ATM: ArpHardwareId

Asynchronous Transmission Mode (ATM) [RFC2225]

Source

pub const SERIAL_LINE: ArpHardwareId

Serial Line

Source

pub const ATM_21: ArpHardwareId

Asynchronous Transmission Mode (ATM) [Mike_Burrows]

Source

pub const MIL_STD_188_220: ArpHardwareId

MIL-STD-188-220

Source

pub const METRICOM: ArpHardwareId

Metricom

Source

pub const IEEE1394: ArpHardwareId

IEEE 1394.1995

Source

pub const MAPOS: ArpHardwareId

MAPOS

Source

pub const TWINAXIAL: ArpHardwareId

Twinaxial

Source

pub const EUI64: ArpHardwareId

EUI-64

Source

pub const HIPARP: ArpHardwareId

HIPARP

Source

pub const IP_AND_ARP_OVER_ISO_7816_3: ArpHardwareId

IP and ARP over ISO 7816-3

Source

pub const ARPSEC: ArpHardwareId

ARPSec

Source

pub const IPSEC_TUNNEL: ArpHardwareId

IPsec tunnel

Source

pub const INFINIBAND: ArpHardwareId

InfiniBand

Source

pub const CAI: ArpHardwareId

TIA-102 Project 25 Common Air Interface (CAI)

Source

pub const WIEGAND_INTERFACE: ArpHardwareId

Wiegand Interface

Source

pub const PURE_IP: ArpHardwareId

Pure IP

Source

pub const HW_EXP1: ArpHardwareId

HW_EXP1

Source

pub const HFI: ArpHardwareId

HFI

Source

pub const UNIFIED_BUS: ArpHardwareId

Unified Bus (UB)

Source

pub const SLIP: ArpHardwareId

Source

pub const CSLIP: ArpHardwareId

Source

pub const SLIP6: ArpHardwareId

Source

pub const CSLIP6: ArpHardwareId

Source

pub const RSRVD: ArpHardwareId

Source

pub const ADAPT: ArpHardwareId

Source

pub const ROSE: ArpHardwareId

Source

pub const X25: ArpHardwareId

Source

pub const HWX25: ArpHardwareId

Source

pub const CAN: ArpHardwareId

Source

pub const PPP: ArpHardwareId

Source

pub const CISCO_HDLC: ArpHardwareId

Source

pub const LAPB: ArpHardwareId

Source

pub const DDCMP: ArpHardwareId

Source

pub const RAWHDLC: ArpHardwareId

Source

pub const RAWIP: ArpHardwareId

Source

pub const TUNNEL: ArpHardwareId

Source

pub const TUNNEL6: ArpHardwareId

Source

pub const FRAD: ArpHardwareId

Source

pub const SKIP: ArpHardwareId

Source

pub const LOOPBACK: ArpHardwareId

Source

pub const LOCALTLK: ArpHardwareId

Source

pub const FDDI: ArpHardwareId

Source

pub const BIF: ArpHardwareId

Source

pub const SIT: ArpHardwareId

Source

pub const IPDDP: ArpHardwareId

Source

pub const IPGRE: ArpHardwareId

Source

pub const PIMREG: ArpHardwareId

Source

pub const HIPPI: ArpHardwareId

Source

pub const ASH: ArpHardwareId

Source

pub const ECONET: ArpHardwareId

Source

pub const IRDA: ArpHardwareId

Source

pub const FCPP: ArpHardwareId

Source

pub const FCAL: ArpHardwareId

Source

pub const FCPL: ArpHardwareId

Source

pub const FCFABRIC: ArpHardwareId

Source

pub const IEEE802_TR: ArpHardwareId

Source

pub const IEEE80211: ArpHardwareId

Source

pub const IEEE80211_PRISM: ArpHardwareId

Source

pub const IEEE80211_RADIOTAP: ArpHardwareId

Source

pub const IEEE802154: ArpHardwareId

Source

pub const IEEE802154_MONITOR: ArpHardwareId

Source

pub const PHONET: ArpHardwareId

Source

pub const PHONET_PIPE: ArpHardwareId

Source

pub const CAIF: ArpHardwareId

Source

pub const IP6GRE: ArpHardwareId

Source

pub const IPV6LOWPAN: ArpHardwareId

Source

pub const VSOCKMON: ArpHardwareId

Source

pub const VOID: ArpHardwareId

Source

pub const NONE: ArpHardwareId

Trait Implementations§

Source§

impl Clone for ArpHardwareId

Source§

fn clone(&self) -> ArpHardwareId

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ArpHardwareId

Source§

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

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

impl Default for ArpHardwareId

Source§

fn default() -> ArpHardwareId

Returns the “default value” for a type. Read more
Source§

impl From<ArpHardwareId> for u16

Source§

fn from(val: ArpHardwareId) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for ArpHardwareId

Source§

fn from(val: u16) -> Self

Converts to this type from the input type.
Source§

impl Hash for ArpHardwareId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for ArpHardwareId

Source§

fn cmp(&self, other: &ArpHardwareId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for ArpHardwareId

Source§

fn eq(&self, other: &ArpHardwareId) -> 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 PartialOrd for ArpHardwareId

Source§

fn partial_cmp(&self, other: &ArpHardwareId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for ArpHardwareId

Source§

impl Eq for ArpHardwareId

Source§

impl StructuralPartialEq for ArpHardwareId

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.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy