Struct smoltcp::wire::Ipv6Option [−][src]
Expand description
A read/write wrapper around an IPv6 Extension Header Option.
Implementations
Create a raw octet buffer with an IPv6 Extension Header Option 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_data_len.
Consume the ipv6 option, returning the underlying buffer.
Return the option type.
Set the option type.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.