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§
Sourceconst PACKET_TYPE: FciFeedbackPacketType
const PACKET_TYPE: FciFeedbackPacketType
The supported feedback packet/s that the FCI data may be encountered within.
Sourceconst FCI_FORMAT: u8
const FCI_FORMAT: u8
The type format of the FCI.
Required Methods§
Sourcefn parse(data: &'a [u8]) -> Result<Self, RtcpParseError>
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".