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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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>
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