Struct Ipv6RouterAlert
pub struct Ipv6RouterAlert(pub u16);Expand description
The value of an IPv6 Router Alert Header Option.
Router Alert options always contain exactly one u16; see RFC 2711 § 2.1.
Tuple Fields§
§0: u16Implementations§
§impl RouterAlert
impl RouterAlert
pub const MulticastListenerDiscovery: RouterAlert
pub const MulticastListenerDiscovery: RouterAlert
The packet contains a Multicast Listener Discovery message.
pub const Rsvp: RouterAlert
pub const Rsvp: RouterAlert
The packet contains an RSVP message.
pub const ActiveNetworks: RouterAlert
pub const ActiveNetworks: RouterAlert
The packet contains an Active Networks message.
§impl RouterAlert
impl RouterAlert
pub const DATA_LEN: u8 = 2
pub const DATA_LEN: u8 = 2
Per RFC 2711 § 2.1, Router Alert options always have 2 bytes of data.
Trait Implementations§
§impl Clone for RouterAlert
impl Clone for RouterAlert
§fn clone(&self) -> RouterAlert
fn clone(&self) -> RouterAlert
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 RouterAlert
§impl Debug for RouterAlert
impl Debug for RouterAlert
§impl Display for RouterAlert
impl Display for RouterAlert
impl Eq for RouterAlert
§impl Format for RouterAlert
Available on crate feature defmt only.
impl Format for RouterAlert
Available on crate feature
defmt only.§impl From<u16> for RouterAlert
impl From<u16> for RouterAlert
§fn from(value: u16) -> RouterAlert
fn from(value: u16) -> RouterAlert
Converts to this type from the input type.
§impl Hash for RouterAlert
impl Hash for RouterAlert
§impl Ord for RouterAlert
impl Ord for RouterAlert
§fn cmp(&self, other: &RouterAlert) -> Ordering
fn cmp(&self, other: &RouterAlert) -> 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 RouterAlert
impl PartialEq for RouterAlert
§impl PartialOrd for RouterAlert
impl PartialOrd for RouterAlert
impl StructuralPartialEq for RouterAlert
Auto Trait Implementations§
impl Freeze for RouterAlert
impl RefUnwindSafe for RouterAlert
impl Send for RouterAlert
impl Sync for RouterAlert
impl Unpin for RouterAlert
impl UnsafeUnpin for RouterAlert
impl UnwindSafe for RouterAlert
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