Enum etherparse::InternetSlice [−][src]
pub enum InternetSlice<'a> { Ipv4(Ipv4HeaderSlice<'a>), Ipv6(Ipv6HeaderSlice<'a>, [Option<(u8, Ipv6ExtensionHeaderSlice<'a>)>; 7]), }
Variants
Ipv4(Ipv4HeaderSlice<'a>)
Ipv6(Ipv6HeaderSlice<'a>, [Option<(u8, Ipv6ExtensionHeaderSlice<'a>)>; 7])
First element is the Ipv6 header slice and second one are the Ipv6 extensions headers filled in order from 0 to the length of the array.
Trait Implementations
impl<'a> Clone for InternetSlice<'a>
[src]
impl<'a> Clone for InternetSlice<'a>
fn clone(&self) -> InternetSlice<'a>
[src]
fn clone(&self) -> InternetSlice<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for InternetSlice<'a>
[src]
impl<'a> Debug for InternetSlice<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Eq for InternetSlice<'a>
[src]
impl<'a> Eq for InternetSlice<'a>
impl<'a> PartialEq for InternetSlice<'a>
[src]
impl<'a> PartialEq for InternetSlice<'a>
fn eq(&self, other: &InternetSlice<'a>) -> bool
[src]
fn eq(&self, other: &InternetSlice<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &InternetSlice<'a>) -> bool
[src]
fn ne(&self, other: &InternetSlice<'a>) -> bool
This method tests for !=
.
Auto Trait Implementations
impl<'a> Send for InternetSlice<'a>
impl<'a> Send for InternetSlice<'a>
impl<'a> Sync for InternetSlice<'a>
impl<'a> Sync for InternetSlice<'a>