Type Alias DestinationOption

Source
pub type DestinationOption<'a> = ExtensionHeaderOption<DestinationOptionData<'a>>;
Expand description

An option found in a Destination Options extension header.

Aliased Type§

struct DestinationOption<'a> {
    pub action: ExtensionHeaderOptionAction,
    pub mutable: bool,
    pub data: DestinationOptionData<'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: DestinationOptionData<'a>

Option data associated with a specific extension header.

Trait Implementations

Source§

impl<O: Clone> Clone for ExtensionHeaderOption<O>

Source§

fn clone(&self) -> ExtensionHeaderOption<O>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<O: Debug> Debug for ExtensionHeaderOption<O>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<O: PartialEq> PartialEq for ExtensionHeaderOption<O>

Source§

fn eq(&self, other: &ExtensionHeaderOption<O>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<O: Eq> Eq for ExtensionHeaderOption<O>

Source§

impl<O> StructuralPartialEq for ExtensionHeaderOption<O>