Enum etherparse::Ipv6ExtensionSlice
source · pub enum Ipv6ExtensionSlice<'a> {
HopByHop(Ipv6RawExtHeaderSlice<'a>),
Routing(Ipv6RawExtHeaderSlice<'a>),
Fragment(Ipv6FragmentHeaderSlice<'a>),
DestinationOptions(Ipv6RawExtHeaderSlice<'a>),
Authentication(IpAuthHeaderSlice<'a>),
}
Expand description
Enum containing a slice of a supported ipv6 extension header.
This enum is used as item type when iterating over a list of extension headers with an Ipv6ExtensionSliceIter.
Note the following extension headers are missing from this enum and currently not supported (list taken on 2021-07-17 from https://www.iana.org/assignments/ipv6-parameters/ipv6-parameters.xhtml):
Variants§
HopByHop(Ipv6RawExtHeaderSlice<'a>)
IPv6 Hop-by-Hop Option [RFC8200]
Routing(Ipv6RawExtHeaderSlice<'a>)
Fragment(Ipv6FragmentHeaderSlice<'a>)
Fragment Header for IPv6 [RFC8200]
DestinationOptions(Ipv6RawExtHeaderSlice<'a>)
Destination Options for IPv6 [RFC8200]
Authentication(IpAuthHeaderSlice<'a>)
Authentication Header [RFC4302]
Trait Implementations§
source§impl<'a> Clone for Ipv6ExtensionSlice<'a>
impl<'a> Clone for Ipv6ExtensionSlice<'a>
source§fn clone(&self) -> Ipv6ExtensionSlice<'a>
fn clone(&self) -> Ipv6ExtensionSlice<'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 moresource§impl<'a> Debug for Ipv6ExtensionSlice<'a>
impl<'a> Debug for Ipv6ExtensionSlice<'a>
source§impl<'a> PartialEq for Ipv6ExtensionSlice<'a>
impl<'a> PartialEq for Ipv6ExtensionSlice<'a>
source§fn eq(&self, other: &Ipv6ExtensionSlice<'a>) -> bool
fn eq(&self, other: &Ipv6ExtensionSlice<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for Ipv6ExtensionSlice<'a>
impl<'a> StructuralPartialEq for Ipv6ExtensionSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for Ipv6ExtensionSlice<'a>
impl<'a> RefUnwindSafe for Ipv6ExtensionSlice<'a>
impl<'a> Send for Ipv6ExtensionSlice<'a>
impl<'a> Sync for Ipv6ExtensionSlice<'a>
impl<'a> Unpin for Ipv6ExtensionSlice<'a>
impl<'a> UnwindSafe for Ipv6ExtensionSlice<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more