Trait netsim_embed::Packet

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

Represents a generic network packet.

Required Methods§

Retrieve the underlying buffer for the packet.

Retrieve the payload for the packet.

Implementors§