[][src]Trait discortp::MutablePacket

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
, { ... } }

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.

Loading content...

Provided methods

fn clone_from<T>(&mut self, other: &T) where
    T: Packet

Initialize this packet by cloning another.

Loading content...

Implementors

impl<'a> MutablePacket for MutableIpDiscoveryPacket<'a>[src]

impl<'a> MutablePacket for MutableRtcpPacket<'a>[src]

impl<'a> MutablePacket for MutableRtpPacket<'a>[src]

Loading content...