Struct pcap_parser::Linktype
source · [−]pub struct Linktype(pub i32);
Expand description
Data link type
The link-layer header type specifies the type of headers at the beginning of the packet.
Tuple Fields
0: i32
Implementations
sourceimpl Linktype
impl Linktype
pub const NULL: Linktype = Linktype(0)
pub const ETHERNET: Linktype = Linktype(1)
pub const FDDI: Linktype = Linktype(10)
pub const RAW: Linktype = Linktype(101)
pub const LOOP: Linktype = Linktype(108)
pub const LINUX_SLL: Linktype = Linktype(113)
pub const IPV4: Linktype = Linktype(228)
pub const IPV6: Linktype = Linktype(229)
pub const NFLOG: Linktype = Linktype(239)
pub const WIRESHARK_UPPER_PDU: Linktype = Linktype(252)
Trait Implementations
impl Copy for Linktype
impl Eq for Linktype
impl StructuralEq for Linktype
impl StructuralPartialEq for Linktype
Auto Trait Implementations
impl RefUnwindSafe for Linktype
impl Send for Linktype
impl Sync for Linktype
impl Unpin for Linktype
impl UnwindSafe for Linktype
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more