pub struct Icmpv6Packet {
pub icmpv6_type: Icmpv6Type,
pub icmpv6_code: u8,
pub checksum: u16,
pub payload: Vec<u8>,
}
Expand description
Represents an ICMPv6 packet.
Fields§
§icmpv6_type: Icmpv6Type
ICMPv6 type
icmpv6_code: u8
ICMPv6 code
checksum: u16
ICMPv6 checksum
payload: Vec<u8>
Payload
Implementations§
Source§impl Icmpv6Packet
impl Icmpv6Packet
Sourcepub fn from_bytes(packet: &[u8]) -> Icmpv6Packet
pub fn from_bytes(packet: &[u8]) -> Icmpv6Packet
Constructs a new Icmpv6Packet from bytes
Trait Implementations§
Source§impl Clone for Icmpv6Packet
impl Clone for Icmpv6Packet
Source§fn clone(&self) -> Icmpv6Packet
fn clone(&self) -> Icmpv6Packet
Returns a duplicate 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 Icmpv6Packet
impl Debug for Icmpv6Packet
Source§impl PartialEq for Icmpv6Packet
impl PartialEq for Icmpv6Packet
impl StructuralPartialEq for Icmpv6Packet
Auto Trait Implementations§
impl Freeze for Icmpv6Packet
impl RefUnwindSafe for Icmpv6Packet
impl Send for Icmpv6Packet
impl Sync for Icmpv6Packet
impl Unpin for Icmpv6Packet
impl UnwindSafe for Icmpv6Packet
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