Struct etherparse::IpAuthenticationHeaderSlice[][src]

pub struct IpAuthenticationHeaderSlice<'a> { /* fields omitted */ }
Expand description

A slice containing an IP Authentication Header (rfc4302)

Implementations

Creates a ip authentication header slice from a slice.

Creates a ip authentication header slice from a slice (assumes slice size & content was validated before).

Safety

This method assumes that the slice was previously validated to contain a valid authentification header. This means the slice length must at least be at least 8 and (slice[1] + 2)*4. The data that the slice points must also be valid (meaning no nullptr or alike allowed).

If these precondtions are not fullfilled the behavior of this function and the methods of the return IpAuthenticationHeaderSlice will be undefined.

Returns the slice containing the authentification header.

Returns the IP protocol number of the next header or transport layer protocol.

See IpNumber or ip_number for a definition of the known values.

Read the security parameters index from the slice

This unsigned 32-bit field contains a counter value that increases by one for each packet sent.

Return a slice with the raw integrity check value

Decode some of the fields and copy the results to a Ipv6ExtensionHeader struct together with a slice pointing to the non decoded parts.

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.