pub enum LinkType {
Ethernet,
Sll,
Sllv2,
Null,
RawIpv4,
RawIpv6,
}Expand description
Link layer type for the packet capture
This determines what protocol to expect at the beginning of the packet.
Variants§
Ethernet
Standard Ethernet II frame
Sll
Linux cooked capture v1 (SLL)
Sllv2
Linux cooked capture v2 (SLLv2)
Null
BSD Null/Loopback encapsulation
RawIpv4
Raw IPv4 (no link layer header)
RawIpv6
Raw IPv6 (no link layer 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