pub type HopByHopOption<'a> = ExtensionHeaderOption<HopByHopOptionData<'a>>;
Expand description

An option found in a Hop By Hop Options extension header.

Aliased Type§

struct HopByHopOption<'a> {
    pub action: ExtensionHeaderOptionAction,
    pub mutable: bool,
    pub data: HopByHopOptionData<'a>,
}

Fields§

§action: ExtensionHeaderOptionAction

Action to take if the option type is unrecognized.

§mutable: bool

Whether or not the option data of the option can change en route to the packet’s final destination. When an Authentication header is present in the packet, the option data must be treated as 0s when computing or verifying the packet’s authenticating value when the option data can change en route.

§data: HopByHopOptionData<'a>

Option data associated with a specific extension header.

Trait Implementations§

source§

impl<'a> AlignedOptionBuilder for HopByHopOption<'a>

source§

fn alignment_requirement(&self) -> (usize, usize)

Returns the alignment requirement of self. Read more
source§

fn serialize_padding(buf: &mut [u8], length: usize)

Serializes the padding between subsequent aligned options. Read more
source§

impl<'a> OptionBuilder for HopByHopOption<'a>

§

type Layout = HopByHopOptionLayout

Information about the option’s layout.
source§

fn serialized_len(&self) -> usize

Returns the serialized length, in bytes, of self. Read more
source§

fn option_kind(&self) -> u8

Returns the wire value for this option kind.
source§

fn serialize_into(&self, buffer: &mut [u8])

Serializes self into data. Read more