Trait pnet_macros_support::packet::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
Retreive the underlying, mutable, buffer for the packet.
Provided methods
fn clone_from<T: Packet>(&mut self, other: &T)
fn clone_from<T: Packet>(&mut self, other: &T)
Initialize this packet by cloning another.