pub struct EchoReplyPacket {
pub header: Icmpv6Header,
pub identifier: u16,
pub sequence_number: u16,
pub payload: Bytes,
}Expand description
Represents an “echo reply” ICMPv6 packet.
Fields§
§header: Icmpv6Header§identifier: u16§sequence_number: u16§payload: BytesTrait Implementations§
Source§impl Clone for EchoReplyPacket
impl Clone for EchoReplyPacket
Source§fn clone(&self) -> EchoReplyPacket
fn clone(&self) -> EchoReplyPacket
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 EchoReplyPacket
impl Debug for EchoReplyPacket
Source§impl Packet for EchoReplyPacket
impl Packet for EchoReplyPacket
type Header = ()
Source§fn from_bytes(bytes: Bytes) -> Option<Self>
fn from_bytes(bytes: Bytes) -> Option<Self>
Parse from raw bytes. (with ownership)
Source§fn header_len(&self) -> usize
fn header_len(&self) -> usize
Get the length of the header.
Source§fn payload_len(&self) -> usize
fn payload_len(&self) -> usize
Get the length of the payload.
fn into_parts(self) -> (Self::Header, Bytes)
Source§fn to_bytes_mut(&self) -> BytesMut
fn to_bytes_mut(&self) -> BytesMut
Convert the packet to a mutable byte buffer.
Source§fn header_mut(&self) -> BytesMut
fn header_mut(&self) -> BytesMut
Get a mutable byte buffer for the header.
Source§fn payload_mut(&self) -> BytesMut
fn payload_mut(&self) -> BytesMut
Get a mutable byte buffer for the payload.
Source§impl PartialEq for EchoReplyPacket
impl PartialEq for EchoReplyPacket
Source§impl TryFrom<Icmpv6Packet> for EchoReplyPacket
impl TryFrom<Icmpv6Packet> for EchoReplyPacket
impl Eq for EchoReplyPacket
impl StructuralPartialEq for EchoReplyPacket
Auto Trait Implementations§
impl !Freeze for EchoReplyPacket
impl RefUnwindSafe for EchoReplyPacket
impl Send for EchoReplyPacket
impl Sync for EchoReplyPacket
impl Unpin for EchoReplyPacket
impl UnwindSafe for EchoReplyPacket
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