Trait pnet::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) { ... } }
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: Packet>(&mut self, other: &T)
Initialize this packet by cloning another
Implementors
impl<'a> MutablePacket for MutableEthernetPacket<'a>
impl<'a> MutablePacket for MutableGrePacket<'a>
impl<'a> MutablePacket for MutableU16BEPacket<'a>
impl<'a> MutablePacket for MutableU32BEPacket<'a>
impl<'a> MutablePacket for MutableIpv4Packet<'a>
impl<'a> MutablePacket for MutableIpv4OptionPacket<'a>
impl<'a> MutablePacket for MutableIpv6Packet<'a>
impl<'a> MutablePacket for MutableUdpPacket<'a>
impl<'a> MutablePacket for MutableTcpPacket<'a>
impl<'a> MutablePacket for MutableTcpOptionPacket<'a>
impl<'a> MutablePacket for MutableArpPacket<'a>
impl<'a> MutablePacket for MutableEchoReplyPacket<'a>
impl<'a> MutablePacket for MutableEchoRequestPacket<'a>
impl<'a> MutablePacket for MutableDestinationUnreachablePacket<'a>
impl<'a> MutablePacket for MutableTimeExceededPacket<'a>
impl<'a> MutablePacket for MutableIcmpPacket<'a>
impl<'a> MutablePacket for MutableVlanPacket<'a>