Trait packet::Packet [] [src]

pub trait Packet {
    fn split(&self) -> (&[u8], &[u8]);

    fn header(&self) -> &[u8] { ... }
fn payload(&self) -> &[u8] { ... } }

A network packet.

Required Methods

Return both slices.

Provided Methods

Return a slice to the packet header.

Return a slice to the packet payload.

Implementors