Trait pnet_packet::MutablePacket
source · [−]pub trait MutablePacket: Packet {
fn packet_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn payload_mut(&mut self) -> &mut [u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ 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.