Struct pnet::packet::usbpcap::UsbPcapStatus
source · pub struct UsbPcapStatus(pub u32);
Expand description
Represents the USB status for USB requests.
Tuple Fields§
§0: u32
Implementations§
source§impl UsbPcapStatus
impl UsbPcapStatus
sourcepub fn new(val: u32) -> UsbPcapStatus
pub fn new(val: u32) -> UsbPcapStatus
Construct a new UsbPcapStatus
instance.
Trait Implementations§
source§impl Clone for UsbPcapStatus
impl Clone for UsbPcapStatus
source§fn clone(&self) -> UsbPcapStatus
fn clone(&self) -> UsbPcapStatus
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 UsbPcapStatus
impl Debug for UsbPcapStatus
source§impl Hash for UsbPcapStatus
impl Hash for UsbPcapStatus
source§impl Ord for UsbPcapStatus
impl Ord for UsbPcapStatus
source§fn cmp(&self, other: &UsbPcapStatus) -> Ordering
fn cmp(&self, other: &UsbPcapStatus) -> 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 for UsbPcapStatus
impl PartialEq for UsbPcapStatus
source§fn eq(&self, other: &UsbPcapStatus) -> bool
fn eq(&self, other: &UsbPcapStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UsbPcapStatus
impl PartialOrd for UsbPcapStatus
source§fn partial_cmp(&self, other: &UsbPcapStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &UsbPcapStatus) -> 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 UsbPcapStatus
impl PrimitiveValues for UsbPcapStatus
source§fn to_primitive_values(&self) -> <UsbPcapStatus as PrimitiveValues>::T
fn to_primitive_values(&self) -> <UsbPcapStatus as PrimitiveValues>::T
Convert a value to primitive types representing it.
impl Copy for UsbPcapStatus
impl Eq for UsbPcapStatus
impl StructuralPartialEq for UsbPcapStatus
Auto Trait Implementations§
impl Freeze for UsbPcapStatus
impl RefUnwindSafe for UsbPcapStatus
impl Send for UsbPcapStatus
impl Sync for UsbPcapStatus
impl Unpin for UsbPcapStatus
impl UnwindSafe for UsbPcapStatus
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