Enum etherparse::InternetSlice
source · 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§
source§impl<'a> Clone for InternetSlice<'a>
impl<'a> Clone for InternetSlice<'a>
source§fn clone(&self) -> InternetSlice<'a>
fn clone(&self) -> InternetSlice<'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