Struct smoltcp::wire::Ipv6HopByHopHeader[][src]

pub struct Ipv6HopByHopHeader<T: AsRef<[u8]>> { /* fields omitted */ }
Expand description

A read/write wrapper around an IPv6 Hop-by-Hop Options Header.

Implementations

Create a raw octet buffer with an IPv6 Hop-by-Hop Options Header structure.

Shorthand for a combination of new_unchecked and check_len.

Ensure that no accessor method will panic if called. Returns Err(Error::Truncated) if the buffer is too short.

The result of this check is invalidated by calling set_header_len.

Consume the header, returning the underlying buffer.

Return the next header field.

Return length of the Hop-by-Hop Options header in 8-octet units, not including the first 8 octets.

Return the option data.

Set the next header field.

Set the option data length. Length of the Hop-by-Hop Options header in 8-octet units, not including the first 8 octets.

Return a mutable pointer to the option data.

Trait Implementations

Formats the value using the given formatter. 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.

Converts the given value to a String. 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.