pub enum LinkType {
Raw,
Ethernet,
Ieee80211,
Radiotap,
BluetoothLeLl,
Ieee802154,
Ieee802154Tap,
LinuxCooked,
LinuxSll,
NullLoopback,
}Expand description
Opaque link-layer decode entrypoint.
Variants§
Raw
Decode bytes as an unsupported or caller-defined raw link payload.
Ethernet
Ethernet frames.
Ieee80211
Bare IEEE 802.11 MAC frames without radiotap metadata.
Radiotap
Radiotap metadata followed by an IEEE 802.11 MAC frame.
BluetoothLeLl
BLE LE Link Layer with radio pseudo-header; pcap DLT 256.
Ieee802154
Bare IEEE 802.15.4 MAC frame with FCS; pcap DLT 195 (with-FCS) / 230 (no-FCS).
Ieee802154Tap
IEEE 802.15.4 TAP pseudo-header followed by a MAC frame; pcap DLT 283.
LinuxCooked
Linux cooked capture frames.
LinuxSll
Linux cooked capture frames.
NullLoopback
BSD null/loopback frames.
Trait Implementations§
impl Copy for LinkType
impl Eq for LinkType
Source§impl From<LinkType> for PcapLinkType
impl From<LinkType> for PcapLinkType
impl StructuralPartialEq for LinkType
Auto Trait Implementations§
impl Freeze for LinkType
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnsafeUnpin for LinkType
impl UnwindSafe for LinkType
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