[][src]Struct etherparse::DoubleVlanHeaderSlice

pub struct DoubleVlanHeaderSlice<'a> { /* fields omitted */ }

A slice containing an double vlan header of a network package.

Methods

impl<'a> DoubleVlanHeaderSlice<'a>[src]

pub fn from_slice(
    slice: &'a [u8]
) -> Result<DoubleVlanHeaderSlice<'a>, ReadError>
[src]

Creates a double header slice from a slice.

pub fn slice(&self) -> &'a [u8][src]

Returns the slice containing the double vlan header

pub fn outer(&self) -> SingleVlanHeaderSlice<'a>[src]

Returns a slice with the outer vlan header

pub fn inner(&self) -> SingleVlanHeaderSlice<'a>[src]

Returns a slice with the inner vlan header.

pub fn to_header(&self) -> DoubleVlanHeader[src]

Decode all the fields and copy the results to a DoubleVlanHeader struct

Trait Implementations

impl<'a> Clone for DoubleVlanHeaderSlice<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'a> Eq for DoubleVlanHeaderSlice<'a>[src]

impl<'a> PartialEq<DoubleVlanHeaderSlice<'a>> for DoubleVlanHeaderSlice<'a>[src]

impl<'a> Debug for DoubleVlanHeaderSlice<'a>[src]

Auto Trait Implementations

impl<'a> Send for DoubleVlanHeaderSlice<'a>

impl<'a> Sync for DoubleVlanHeaderSlice<'a>

Blanket Implementations

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.

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

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

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