Enum linux_raw_sys::if_packet::tpacket_versions
source · #[non_exhaustive]#[repr(u32)]pub enum tpacket_versions {
TPACKET_V1 = 0,
TPACKET_V2 = 1,
TPACKET_V3 = 2,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for tpacket_versions
impl Clone for tpacket_versions
source§fn clone(&self) -> tpacket_versions
fn clone(&self) -> tpacket_versions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for tpacket_versions
impl Debug for tpacket_versions
source§impl Hash for tpacket_versions
impl Hash for tpacket_versions
source§impl PartialEq for tpacket_versions
impl PartialEq for tpacket_versions
source§fn eq(&self, other: &tpacket_versions) -> bool
fn eq(&self, other: &tpacket_versions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for tpacket_versions
impl Eq for tpacket_versions
impl StructuralPartialEq for tpacket_versions
Auto Trait Implementations§
impl Freeze for tpacket_versions
impl RefUnwindSafe for tpacket_versions
impl Send for tpacket_versions
impl Sync for tpacket_versions
impl Unpin for tpacket_versions
impl UnwindSafe for tpacket_versions
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