Trait pnet_packet::MutablePacket
source ·
[−]pub trait MutablePacket: Packet {
fn packet_mut(&mut self) -> &mut [u8]ⓘ;
fn payload_mut(&mut self) -> &mut [u8]ⓘ;
fn clone_from<T>(&mut self, other: &T)
where
T: Packet,
{ ... }
}
Expand description
Represents a generic, mutable, network packet.
Required methods
Retreive the underlying, mutable, buffer for the packet.
Provided methods
fn clone_from<T>(&mut self, other: &T) where
T: Packet,
fn clone_from<T>(&mut self, other: &T) where
T: Packet,
Initialize this packet by cloning another.