Struct Ipv6OptionType
pub struct Ipv6OptionType(pub u8);Expand description
IPv6 option type, from the Hop-by-Hop or Destination Options TLVs.
Tuple Fields§
§0: u8Implementations§
§impl OptionType
impl OptionType
pub const Pad1: OptionType
pub const Pad1: OptionType
1 byte of padding (this option has no length or data).
pub const PadN: OptionType
pub const PadN: OptionType
Multiple bytes of padding.
pub const RouterAlert: OptionType
pub const RouterAlert: OptionType
Router alert (RFC 2711).
§impl OptionType
impl OptionType
pub fn failure_action(&self) -> OptionFailureAction
pub fn failure_action(&self) -> OptionFailureAction
The action required if this option is not recognized.
Trait Implementations§
§impl Clone for OptionType
impl Clone for OptionType
§fn clone(&self) -> OptionType
fn clone(&self) -> OptionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OptionType
§impl Debug for OptionType
impl Debug for OptionType
§impl Display for OptionType
impl Display for OptionType
impl Eq for OptionType
§impl Format for OptionType
Available on crate feature defmt only.
impl Format for OptionType
Available on crate feature
defmt only.§impl From<u8> for OptionType
impl From<u8> for OptionType
§fn from(value: u8) -> OptionType
fn from(value: u8) -> OptionType
Converts to this type from the input type.
§impl Hash for OptionType
impl Hash for OptionType
§impl Ord for OptionType
impl Ord for OptionType
§fn cmp(&self, other: &OptionType) -> Ordering
fn cmp(&self, other: &OptionType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for OptionType
impl PartialEq for OptionType
§impl PartialOrd for OptionType
impl PartialOrd for OptionType
impl StructuralPartialEq for OptionType
Auto Trait Implementations§
impl Freeze for OptionType
impl RefUnwindSafe for OptionType
impl Send for OptionType
impl Sync for OptionType
impl Unpin for OptionType
impl UnsafeUnpin for OptionType
impl UnwindSafe for OptionType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more