Struct netsim_embed::vlan::ClassOfService
source · pub struct ClassOfService(pub u8);Expand description
Represents an IEEE 802.1p class of a service.
Tuple Fields§
§0: u8Implementations§
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<ClassOfService> for ClassOfService
impl PartialEq<ClassOfService> for ClassOfService
source§fn eq(&self, other: &ClassOfService) -> bool
fn eq(&self, other: &ClassOfService) -> bool
source§impl PartialOrd<ClassOfService> for ClassOfService
impl PartialOrd<ClassOfService> 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 more