[][src]Trait discortp::Packet

pub trait Packet {
    fn packet(&self) -> &[u8];
fn payload(&self) -> &[u8]; }

Represents a generic network packet.

Required methods

fn packet(&self) -> &[u8]

Retrieve the underlying buffer for the packet.

fn payload(&self) -> &[u8]

Retrieve the payload for the packet.

Loading content...

Implementors

impl<'a> Packet for IpDiscoveryPacket<'a>[src]

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

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

impl<'a> Packet for RtcpPacket<'a>[src]

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

impl<'a> Packet for RtpPacket<'a>[src]

Loading content...