Trait pnet_packet::Packet[][src]

pub trait Packet {
    fn packet(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn payload(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }
Expand description

Represents a generic network packet.

Required methods

Retrieve the underlying buffer for the packet.

Retrieve the payload for the packet.

Implementors