pub struct Icmpv6 {
pub icmpv6_type: Icmpv6Type,
pub icmpv6_code: Icmpv6Code,
pub checksum: u16,
pub payload: Vec<u8>,
}
Expand description
Represents a generic ICMPv6 packet RFC 4443 § 2.1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ Message Body +
| |
Fields§
§icmpv6_type: Icmpv6Type
§icmpv6_code: Icmpv6Code
§checksum: u16
§payload: Vec<u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Icmpv6
impl RefUnwindSafe for Icmpv6
impl Send for Icmpv6
impl Sync for Icmpv6
impl Unpin for Icmpv6
impl UnwindSafe for Icmpv6
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