Enum etherparse::Ipv6ExtensionSlice[][src]

pub enum Ipv6ExtensionSlice<'a> {
    HopByHop(Ipv6RawExtensionHeaderSlice<'a>),
    Routing(Ipv6RawExtensionHeaderSlice<'a>),
    Fragment(Ipv6FragmentHeaderSlice<'a>),
    DestinationOptions(Ipv6RawExtensionHeaderSlice<'a>),
    Authentication(IpAuthenticationHeaderSlice<'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(Ipv6RawExtensionHeaderSlice<'a>)

Tuple Fields

IPv6 Hop-by-Hop Option [RFC8200]

Routing(Ipv6RawExtensionHeaderSlice<'a>)

Tuple Fields

Routing Header for IPv6 [RFC8200] [RFC5095]

Fragment(Ipv6FragmentHeaderSlice<'a>)

Tuple Fields

Fragment Header for IPv6 [RFC8200]

DestinationOptions(Ipv6RawExtensionHeaderSlice<'a>)

Tuple Fields

Destination Options for IPv6 [RFC8200]

Authentication(IpAuthenticationHeaderSlice<'a>)

Tuple Fields

Authentication Header [RFC4302]

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.