Skip to main content

FciParser

Trait FciParser 

Source
pub trait FciParser<'a>: Sized {
    const PACKET_TYPE: FciFeedbackPacketType;
    const FCI_FORMAT: u8;

    // Required method
    fn parse(data: &'a [u8]) -> Result<Self, RtcpParseError>;
}
Expand description

Trait for parsing FCI data in TransportFeedback or PayloadFeedback packets

Required Associated Constants§

Source

const PACKET_TYPE: FciFeedbackPacketType

The supported feedback packet/s that the FCI data may be encountered within.

Source

const FCI_FORMAT: u8

The type format of the FCI.

Required Methods§

Source

fn parse(data: &'a [u8]) -> Result<Self, RtcpParseError>

Parse the provided FCI data

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> FciParser<'a> for Fir<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::PAYLOAD

Source§

const FCI_FORMAT: u8 = 4

Source§

impl<'a> FciParser<'a> for Nack<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::TRANSPORT

Source§

const FCI_FORMAT: u8 = 1

Source§

impl<'a> FciParser<'a> for Pli<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::PAYLOAD

Source§

const FCI_FORMAT: u8 = 1

Source§

impl<'a> FciParser<'a> for Rpsi<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::PAYLOAD

Source§

const FCI_FORMAT: u8 = 3

Source§

impl<'a> FciParser<'a> for Sli<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::PAYLOAD

Source§

const FCI_FORMAT: u8 = 2

Source§

impl<'a> FciParser<'a> for Twcc<'a>

Source§

const PACKET_TYPE: FciFeedbackPacketType = FciFeedbackPacketType::TRANSPORT

Source§

const FCI_FORMAT: u8 = 15