#[non_exhaustive]pub enum Icmpv6Payload {
RouterSolicitation(RouterSolicitationPayload),
RouterAdvertisement(RouterAdvertisementPayload),
NeighborSolicitation(NeighborSolicitationPayload),
NeighborAdvertisement(NeighborAdvertisementPayload),
Redirect(RedirectPayload),
}Expand description
Owned, structured payload data that follows the first 8 bytes of an ICMPv6 packet.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RouterSolicitation(RouterSolicitationPayload)
Payload of a Router Solicitation message.
RouterAdvertisement(RouterAdvertisementPayload)
Payload of a Router Advertisement message.
NeighborSolicitation(NeighborSolicitationPayload)
Payload of a Neighbor Solicitation message.
NeighborAdvertisement(NeighborAdvertisementPayload)
Payload of a Neighbor Advertisement message.
Redirect(RedirectPayload)
Payload of a Redirect message.
Implementations§
Source§impl Icmpv6Payload
impl Icmpv6Payload
Trait Implementations§
Source§impl Clone for Icmpv6Payload
impl Clone for Icmpv6Payload
Source§fn clone(&self) -> Icmpv6Payload
fn clone(&self) -> Icmpv6Payload
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 moreSource§impl Debug for Icmpv6Payload
impl Debug for Icmpv6Payload
impl Eq for Icmpv6Payload
Source§impl PartialEq for Icmpv6Payload
impl PartialEq for Icmpv6Payload
impl StructuralPartialEq for Icmpv6Payload
Auto Trait Implementations§
impl Freeze for Icmpv6Payload
impl RefUnwindSafe for Icmpv6Payload
impl Send for Icmpv6Payload
impl Sync for Icmpv6Payload
impl Unpin for Icmpv6Payload
impl UnsafeUnpin for Icmpv6Payload
impl UnwindSafe for Icmpv6Payload
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