[][src]Struct etherparse::Ipv6ExtensionHeaderSlice

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

A slice containing an ipv6 extension header of a network package.

Methods

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

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

Creates a slice containing an ipv6 header extension.

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

Returns the slice containing the ipv6 extension header

pub fn next_header(&self) -> u8[src]

Returns the id of the next header (see IpTrafficClass for a definition of all ids).

Trait Implementations

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

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

Performs copy-assignment from source. Read more

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

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

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

Auto Trait Implementations

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]