Trait pnet::packet::Packet [] [src]

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

Represents a generic network packet

Required Methods

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

Retreive the underlying buffer for the packet

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

Retreive the payload for the packet

Implementors