[][src]Struct pnet::packet::vlan::ClassOfService

pub struct ClassOfService(pub u8);

Represents an IEEE 802.1p class of a service.

Implementations

impl ClassOfService[src]

pub fn new(value: u8) -> ClassOfService[src]

Create a new ClassOfService instance.

Trait Implementations

impl Clone for ClassOfService[src]

impl Copy for ClassOfService[src]

impl Debug for ClassOfService[src]

impl Eq for ClassOfService[src]

impl Hash for ClassOfService[src]

impl Ord for ClassOfService[src]

impl PartialEq<ClassOfService> for ClassOfService[src]

impl PartialOrd<ClassOfService> for ClassOfService[src]

impl PrimitiveValues for ClassOfService[src]

type T = (u8,)

A tuple of types, to represent the current value.

impl StructuralEq for ClassOfService[src]

impl StructuralPartialEq for ClassOfService[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.