Struct etherparse::Ipv6ExtensionHeaderSlice
source · pub struct Ipv6ExtensionHeaderSlice<'a> { /* private fields */ }
Expand description
A slice containing an ipv6 extension header of a network package.
Implementations§
source§impl<'a> Ipv6ExtensionHeaderSlice<'a>
impl<'a> Ipv6ExtensionHeaderSlice<'a>
sourcepub fn from_slice(
header_type: u8,
slice: &'a [u8]
) -> Result<Ipv6ExtensionHeaderSlice<'a>, ReadError>
pub fn from_slice(
header_type: u8,
slice: &'a [u8]
) -> Result<Ipv6ExtensionHeaderSlice<'a>, ReadError>
Creates a slice containing an ipv6 header extension.
sourcepub fn next_header(&self) -> u8
pub fn next_header(&self) -> u8
Returns the id of the next header (see IpTrafficClass for a definition of all ids).
Trait Implementations§
source§impl<'a> Clone for Ipv6ExtensionHeaderSlice<'a>
impl<'a> Clone for Ipv6ExtensionHeaderSlice<'a>
source§fn clone(&self) -> Ipv6ExtensionHeaderSlice<'a>
fn clone(&self) -> Ipv6ExtensionHeaderSlice<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more