[−][src]Trait discortp::MutablePacket
Represents a generic, mutable, network packet.
Required methods
fn packet_mut(&mut self) -> &mut [u8]
Retreive the underlying, mutable, buffer for the packet.
fn payload_mut(&mut self) -> &mut [u8]
Retreive the mutable payload for the packet.
Provided methods
fn clone_from<T>(&mut self, other: &T) where
T: Packet,
T: Packet,
Initialize this packet by cloning another.