pub enum LinkType {
Ethernet,
RawIp,
LinuxSll,
}Expand description
Which link-layer framing wraps the packets.
Variants§
Ethernet
IEEE 802.3 / Ethernet II (14-byte header).
RawIp
Raw IPv4 (no link-layer header).
LinuxSll
Linux “cooked” capture (SLL/SLL2, 16-byte header).
Trait Implementations§
impl Copy for LinkType
impl Eq for LinkType
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