Struct etherparse::DoubleVlanHeaderSlice[][src]

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

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

Methods

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

Creates a double header slice from a slice.

Returns the slice containing the double vlan header

Returns a slice with the outer vlan header

Returns a slice with the inner vlan header.

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

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

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