pub enum Ipv6OptionRouterAlert {
MulticastListenerDiscovery,
Rsvp,
ActiveNetworks,
Unknown(u16),
}
Expand description
A high-level representation of an IPv6 Router Alert Header Option.
Router Alert options always contain exactly one u16
; see RFC 2711 § 2.1.
Variants§
Implementations§
Source§impl RouterAlert
impl RouterAlert
Sourcepub const DATA_LEN: u8 = 2u8
pub const DATA_LEN: u8 = 2u8
Per RFC 2711 § 2.1, Router Alert options always have 2 bytes of data.
Trait Implementations§
Source§impl Clone for RouterAlert
impl Clone for RouterAlert
Source§fn clone(&self) -> RouterAlert
fn clone(&self) -> RouterAlert
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RouterAlert
impl Debug for RouterAlert
Source§impl From<RouterAlert> for u16
impl From<RouterAlert> for u16
Source§fn from(value: RouterAlert) -> Self
fn from(value: RouterAlert) -> Self
Converts to this type from the input type.
Source§impl From<u16> for RouterAlert
impl From<u16> for RouterAlert
Source§impl Hash for RouterAlert
impl Hash for RouterAlert
Source§impl Ord for RouterAlert
impl Ord for RouterAlert
Source§fn cmp(&self, other: &RouterAlert) -> Ordering
fn cmp(&self, other: &RouterAlert) -> Ordering
1.21.0 · 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
Source§impl PartialEq for RouterAlert
impl PartialEq for RouterAlert
Source§impl PartialOrd for RouterAlert
impl PartialOrd for RouterAlert
impl Copy for RouterAlert
impl Eq 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 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