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>
impl<'a> AlignedOptionBuilder for HopByHopOption<'a>
Source§impl<'a> OptionBuilder for HopByHopOption<'a>
impl<'a> OptionBuilder for HopByHopOption<'a>
Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Returns the serialized length, in bytes, of
self
. Read moreSource§fn option_kind(&self) -> u8
fn option_kind(&self) -> u8
Returns the wire value for this option kind.