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.

Retreive the mutable payload for the packet.

Provided Methods

Initialize this packet by cloning another.

Implementors