#[repr(u8)]pub enum ClassOfService {
BK = 1,
BE = 0,
EE = 2,
CA = 3,
VI = 4,
VO = 5,
IC = 6,
NC = 7,
Unknown(u3),
}
Expand description
Represents an IEEE 802.1p class of a service. https://en.wikipedia.org/wiki/IEEE_P802.1p
Variants§
BK = 1
Background
BE = 0
Best Effort
EE = 2
Excellent Effort
CA = 3
Critical Applications
VI = 4
Video, < 100 ms latency
VO = 5
Voice, < 10 ms latency
IC = 6
Internetwork Control
NC = 7
Network Control
Unknown(u3)
Unknown class of service
Implementations§
Source§impl ClassOfService
impl ClassOfService
Sourcepub fn new(value: u3) -> ClassOfService
pub fn new(value: u3) -> ClassOfService
Constructs a new ClassOfServiceEnum from u3.
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§impl PartialOrd for ClassOfService
impl PartialOrd for ClassOfService
Source§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