[][src]Trait discortp::FromPacket

pub trait FromPacket: Packet {
    type T;
    fn from_packet(&self) -> Self::T;
}

Used to convert on-the-wire packets to their #[packet] equivalent.

Associated Types

type T

The type of the packet to convert from.

Loading content...

Required methods

fn from_packet(&self) -> Self::T

Converts a wire-format packet to #[packet] struct format.

Loading content...

Implementors

impl<'p> FromPacket for IpDiscoveryPacket<'p>[src]

impl<'p> FromPacket for MutableIpDiscoveryPacket<'p>[src]

impl<'p> FromPacket for MutableRtcpPacket<'p>[src]

type T = Rtcp

impl<'p> FromPacket for RtcpPacket<'p>[src]

type T = Rtcp

impl<'p> FromPacket for MutableRtpPacket<'p>[src]

type T = Rtp

impl<'p> FromPacket for RtpPacket<'p>[src]

type T = Rtp

Loading content...