Trait libpacket_core::Packet[][src]

pub trait Packet {
    fn packet(&self) -> &[u8];
fn payload(&self) -> &[u8]; }
Expand description

Represents a generic network packet.

Required methods

fn packet(&self) -> &[u8][src]

Expand description

Retrieve the underlying buffer for the packet.

fn payload(&self) -> &[u8][src]

Expand description

Retrieve the payload for the packet.

Implementors