Struct pnet::packet::vlan::ClassOfService
source · pub struct ClassOfService(pub u8);
Expand description
Represents an IEEE 802.1p class of a service.
Tuple Fields§
§0: u8
Implementations§
source§impl ClassOfService
impl ClassOfService
sourcepub fn new(value: u8) -> ClassOfService
pub fn new(value: u8) -> ClassOfService
Create a new ClassOfService
instance.
Trait Implementations§
source§impl Clone for ClassOfService
impl Clone for ClassOfService
source§fn clone(&self) -> ClassOfService
fn clone(&self) -> ClassOfService
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 ClassOfService
impl Debug for ClassOfService
source§impl Hash for ClassOfService
impl Hash for ClassOfService
source§impl Ord for ClassOfService
impl Ord for ClassOfService
source§fn cmp(&self, other: &ClassOfService) -> Ordering
fn cmp(&self, other: &ClassOfService) -> 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 ClassOfService
impl PartialEq for ClassOfService
source§fn eq(&self, other: &ClassOfService) -> bool
fn eq(&self, other: &ClassOfService) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClassOfService
impl PartialOrd for ClassOfService
source§fn partial_cmp(&self, other: &ClassOfService) -> Option<Ordering>
fn partial_cmp(&self, other: &ClassOfService) -> 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 ClassOfService
impl PrimitiveValues for ClassOfService
impl Copy for ClassOfService
impl Eq for ClassOfService
impl StructuralPartialEq for ClassOfService
Auto Trait Implementations§
impl Freeze for ClassOfService
impl RefUnwindSafe for ClassOfService
impl Send for ClassOfService
impl Sync for ClassOfService
impl Unpin for ClassOfService
impl UnwindSafe for ClassOfService
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