Skip to main content

LinkType

Enum LinkType 

Source
pub enum LinkType {
Show 108 variants NULL, ETHERNET, AX25, IEEE802_5, ARCNET_BSD, SLIP, PPP, FDDI, PPP_HDLC, PPP_ETHER, ATM_RFC1483, RAW, C_HDLC, IEEE802_11, FRELAY, LOOP, LINUX_SLL, LTALK, PFLOG, IEEE802_11_PRISM, IP_OVER_FC, SUNATM, IEEE802_11_RADIOTAP, ARCNET_LINUX, APPLE_IP_OVER_IEEE1394, MTP2_WITH_PHDR, MTP2, MTP3, SCCP, DOCSIS, LINUX_IRDA, USER0, USER1, USER2, USER3, USER4, USER5, USER6, USER7, USER8, USER9, USER10, USER11, USER12, USER13, USER14, USER15, IEEE802_11_AVS, BACNET_MS_TP, PPP_PPPD, GPRS_LLC, GPF_T, GPF_F, LINUX_LAPD, BLUETOOTH_HCI_H4, USB_LINUX, PPI, IEEE802_15_4, SITA, ERF, BLUETOOTH_HCI_H4_WITH_PHDR, AX25_KISS, LAPD, PPP_WITH_DIR, C_HDLC_WITH_DIR, FRELAY_WITH_DIR, IPMB_LINUX, IEEE802_15_4_NONASK_PHY, USB_LINUX_MMAPPED, FC_2, FC_2_WITH_FRAME_DELIMS, IPNET, CAN_SOCKETCAN, IPV4, IPV6, IEEE802_15_4_NOFCS, DBUS, DVB_CI, MUX27010, STANAG_5066_D_PDU, NFLOG, NETANALYZER, NETANALYZER_TRANSPARENT, IPOIB, MPEG_2_TS, NG40, NFC_LLCP, INFINIBAND, SCTP, USBPCAP, RTAC_SERIAL, BLUETOOTH_LE_LL, NETLINK, BLUETOOTH_LINUX_MONITOR, BLUETOOTH_BREDR_BB, BLUETOOTH_LE_LL_WITH_PHDR, PROFIBUS_DL, PKTAP, EPON, IPMI_HPM_2, ZWAVE_R1_R2, ZWAVE_R3, WATTSTOPPER_DLM, ISO_14443, RDS, USB_DARWIN, SDLC, UNKNOWN,
}
Expand description

Enumerates all frame format supported by pcap.

Variants§

§

NULL

§

ETHERNET

§

AX25

§

IEEE802_5

§

ARCNET_BSD

§

SLIP

§

PPP

§

FDDI

§

PPP_HDLC

§

PPP_ETHER

§

ATM_RFC1483

§

RAW

§

C_HDLC

§

IEEE802_11

§

FRELAY

§

LOOP

§

LINUX_SLL

§

LTALK

§

PFLOG

§

IEEE802_11_PRISM

§

IP_OVER_FC

§

SUNATM

§

IEEE802_11_RADIOTAP

§

ARCNET_LINUX

§

APPLE_IP_OVER_IEEE1394

§

MTP2_WITH_PHDR

§

MTP2

§

MTP3

§

SCCP

§

DOCSIS

§

LINUX_IRDA

§

USER0

§

USER1

§

USER2

§

USER3

§

USER4

§

USER5

§

USER6

§

USER7

§

USER8

§

USER9

§

USER10

§

USER11

§

USER12

§

USER13

§

USER14

§

USER15

§

IEEE802_11_AVS

§

BACNET_MS_TP

§

PPP_PPPD

§

GPRS_LLC

§

GPF_T

§

GPF_F

§

LINUX_LAPD

§

BLUETOOTH_HCI_H4

§

USB_LINUX

§

PPI

§

IEEE802_15_4

§

SITA

§

ERF

§

BLUETOOTH_HCI_H4_WITH_PHDR

§

AX25_KISS

§

LAPD

§

PPP_WITH_DIR

§

C_HDLC_WITH_DIR

§

FRELAY_WITH_DIR

§

IPMB_LINUX

§

IEEE802_15_4_NONASK_PHY

§

USB_LINUX_MMAPPED

§

FC_2

§

FC_2_WITH_FRAME_DELIMS

§

IPNET

§

CAN_SOCKETCAN

§

IPV4

§

IPV6

§

IEEE802_15_4_NOFCS

§

DBUS

§

DVB_CI

§

MUX27010

§

STANAG_5066_D_PDU

§

NFLOG

§

NETANALYZER

§

NETANALYZER_TRANSPARENT

§

IPOIB

§

MPEG_2_TS

§

NG40

§

NFC_LLCP

§

INFINIBAND

§

SCTP

§

USBPCAP

§

RTAC_SERIAL

§

BLUETOOTH_LE_LL

§

BLUETOOTH_LINUX_MONITOR

§

BLUETOOTH_BREDR_BB

§

BLUETOOTH_LE_LL_WITH_PHDR

§

PROFIBUS_DL

§

PKTAP

§

EPON

§

IPMI_HPM_2

§

ZWAVE_R1_R2

§

ZWAVE_R3

§

WATTSTOPPER_DLM

§

ISO_14443

§

RDS

§

USB_DARWIN

§

SDLC

§

UNKNOWN

Trait Implementations§

Source§

impl Clone for LinkType

Source§

fn clone(&self) -> LinkType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for LinkType

Source§

impl Debug for LinkType

Source§

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

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

impl From<u32> for LinkType

Source§

fn from(n: u32) -> LinkType

Converts to this type from the input type.
Source§

impl PartialEq for LinkType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for LinkType

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.