Thanks to visit codestin.com
Credit goes to docs.rs

Enum IpDscpKnown

Source
pub enum IpDscpKnown {
Show 23 variants ClassSelector0 = 0, ClassSelector1 = 8, ClassSelector2 = 16, ClassSelector3 = 24, ClassSelector4 = 32, ClassSelector5 = 40, ClassSelector6 = 48, ClassSelector7 = 56, AfGroup11 = 10, AfGroup12 = 12, AfGroup13 = 14, AfGroup21 = 18, AfGroup22 = 20, AfGroup23 = 22, AfGroup31 = 26, AfGroup32 = 28, AfGroup33 = 30, AfGroup41 = 34, AfGroup42 = 36, AfGroup43 = 38, ExpeditedForwarding = 46, VoiceAdmit = 44, LowerEffort = 1,
}
Expand description

Known “Differentiated Services Field Codepoints” (DSCP) values according to the IANA registry (exported on 2025-04-24).

DSCP was established in RFC-2472 and defined/maintained in the IANA dscp-registry

Variants§

§

ClassSelector0 = 0

Class Selector 0 (Pool 1) RFC-2474

§

ClassSelector1 = 8

Class Selector 1 (Pool 1) RFC-2474

§

ClassSelector2 = 16

Class Selector 2 (Pool 1) RFC-2474

§

ClassSelector3 = 24

Class Selector 3 (Pool 1) RFC-2474

§

ClassSelector4 = 32

Class Selector 4 (Pool 1) RFC-2474

§

ClassSelector5 = 40

Class Selector 5 (Pool 1) RFC-2474

§

ClassSelector6 = 48

Class Selector 6 (Pool 1) RFC-2474

§

ClassSelector7 = 56

Class Selector 7 (Pool 1) RFC-2474

§

AfGroup11 = 10

Assured Forwarding PHB Group 11 (Pool 1) RFC-2597

§

AfGroup12 = 12

Assured Forwarding PHB Group 12 (Pool 1) RFC-2597

§

AfGroup13 = 14

Assured Forwarding PHB Group 13 (Pool 1) RFC-2597

§

AfGroup21 = 18

Assured Forwarding PHB Group 21 (Pool 1) RFC-2597

§

AfGroup22 = 20

Assured Forwarding PHB Group 22 (Pool 1) RFC-2597

§

AfGroup23 = 22

Assured Forwarding PHB Group 23 (Pool 1) RFC-2597

§

AfGroup31 = 26

Assured Forwarding PHB Group 31 (Pool 1) RFC-2597

§

AfGroup32 = 28

Assured Forwarding PHB Group 32 (Pool 1) RFC-2597

§

AfGroup33 = 30

Assured Forwarding PHB Group 33 (Pool 1) RFC-2597

§

AfGroup41 = 34

Assured Forwarding PHB Group 41 (Pool 1) RFC-2597

§

AfGroup42 = 36

Assured Forwarding PHB Group 42 (Pool 1) RFC-2597

§

AfGroup43 = 38

Assured Forwarding PHB Group 43 (Pool 1) RFC-2597

§

ExpeditedForwarding = 46

Expedited Forwarding (Pool 1) RFC-3246

§

VoiceAdmit = 44

Voice admit (Pool 1) RFC-5865

§

LowerEffort = 1

Lower Effort PHB (Pool 3) RFC-8622

Implementations§

Source§

impl IpDscpKnown

Source

pub const fn try_from_ip_dscp( value: IpDscp, ) -> Result<IpDscpKnown, IpDscpUnknownValueError>

Try converting an IpDscp into a IpDscpKnown value.

Returns an error if the value is not a known DSCP value.

Trait Implementations§

Source§

impl Clone for IpDscpKnown

Source§

fn clone(&self) -> IpDscpKnown

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IpDscpKnown

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<IpDscpKnown> for IpDscp

Source§

fn from(value: IpDscpKnown) -> Self

Converts to this type from the input type.
Source§

impl From<IpDscpKnown> for u8

Source§

fn from(value: IpDscpKnown) -> Self

Converts to this type from the input type.
Source§

impl Hash for IpDscpKnown

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for IpDscpKnown

Source§

fn cmp(&self, other: &IpDscpKnown) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for IpDscpKnown

Source§

fn eq(&self, other: &IpDscpKnown) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for IpDscpKnown

Source§

fn partial_cmp(&self, other: &IpDscpKnown) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<IpDscp> for IpDscpKnown

Source§

type Error = IpDscpUnknownValueError

The type returned in the event of a conversion error.
Source§

fn try_from(value: IpDscp) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for IpDscpKnown

Source§

impl Eq for IpDscpKnown

Source§

impl StructuralPartialEq for IpDscpKnown

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.