Struct pnet::packet::usbpcap::UsbPcapFunction
source · pub struct UsbPcapFunction(pub u16);
Expand description
Represents a USB PCAP function for the requested operation.
Tuple Fields§
§0: u16
Implementations§
source§impl UsbPcapFunction
impl UsbPcapFunction
sourcepub fn new(val: u16) -> UsbPcapFunction
pub fn new(val: u16) -> UsbPcapFunction
Construct a new UsbPcapFunction
instance.
Trait Implementations§
source§impl Clone for UsbPcapFunction
impl Clone for UsbPcapFunction
source§fn clone(&self) -> UsbPcapFunction
fn clone(&self) -> UsbPcapFunction
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 UsbPcapFunction
impl Debug for UsbPcapFunction
source§impl Hash for UsbPcapFunction
impl Hash for UsbPcapFunction
source§impl Ord for UsbPcapFunction
impl Ord for UsbPcapFunction
source§fn cmp(&self, other: &UsbPcapFunction) -> Ordering
fn cmp(&self, other: &UsbPcapFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UsbPcapFunction> for UsbPcapFunction
impl PartialEq<UsbPcapFunction> for UsbPcapFunction
source§fn eq(&self, other: &UsbPcapFunction) -> bool
fn eq(&self, other: &UsbPcapFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UsbPcapFunction> for UsbPcapFunction
impl PartialOrd<UsbPcapFunction> for UsbPcapFunction
source§fn partial_cmp(&self, other: &UsbPcapFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &UsbPcapFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PrimitiveValues for UsbPcapFunction
impl PrimitiveValues for UsbPcapFunction
source§fn to_primitive_values(&self) -> <UsbPcapFunction as PrimitiveValues>::T
fn to_primitive_values(&self) -> <UsbPcapFunction as PrimitiveValues>::T
Convert a value to primitive types representing it.
impl Copy for UsbPcapFunction
impl Eq for UsbPcapFunction
impl StructuralEq for UsbPcapFunction
impl StructuralPartialEq for UsbPcapFunction
Auto Trait Implementations§
impl RefUnwindSafe for UsbPcapFunction
impl Send for UsbPcapFunction
impl Sync for UsbPcapFunction
impl Unpin for UsbPcapFunction
impl UnwindSafe for UsbPcapFunction
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