pub struct Ipv6ExtensionsSlice<'a> { /* private fields */ }
Expand description

Slice containing the IPv6 extension headers present after the ip header.

Currently supported:

  • Authentication Header
  • Hop by Hop Options Header
  • Destination Options Header (before and after routing headers)
  • Routing Header
  • Fragment
  • Authentication Header

Currently not supported:

  • Encapsulating Security Payload Header (ESP)
  • Host Identity Protocol (HIP)
  • IP Mobility
  • Site Multihoming by IPv6 Intermediation (SHIM6)

Implementations§

Collects all ipv6 extension headers in a slice & checks if a fragmentation header that fragments the packet is present.

Returns true if a fragmentation header is present in the extensions that fragments the payload.

Note: A fragmentation header can still be present even if the return value is false in case the fragmentation headers don’t fragment the payload. This is the case if the offset of all fragmentation header is 0 and the more fragment bit is not set.

Returns the ip protocol number of the first header in the slice if the slice contains an ipv6 extension header. If no ipv6 header is present None is returned.

None is only returned if the slice length of this struct is 0.

Slice containing the ipv6 extension headers.

Returns true if no IPv6 extension header is present (slice is empty).

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
Returns the “default value” for a type. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.