Trait libpacket_core::MutablePacket[][src]

pub trait MutablePacket: Packet {
    fn packet_mut(&mut self) -> &mut [u8];
fn payload_mut(&mut self) -> &mut [u8]; fn clone_from<T: Packet>(&mut self, other: &T) { ... } }
Expand description

Represents a generic, mutable, network packet.

Required methods

fn packet_mut(&mut self) -> &mut [u8][src]

Expand description

Retreive the underlying, mutable, buffer for the packet.

fn payload_mut(&mut self) -> &mut [u8][src]

Expand description

Retreive the mutable payload for the packet.

Provided methods

fn clone_from<T: Packet>(&mut self, other: &T)[src]

Expand description

Initialize this packet by cloning another.

Implementors