Trait RtcpPacketParserExt

Source
pub trait RtcpPacketParserExt<'a>: RtcpPacketParser<'a> {
    // Provided methods
    fn version(&self) -> u8 { ... }
    fn type_(&self) -> u8 { ... }
    fn subtype(&self) -> u8 { ... }
    fn length(&self) -> usize { ... }
    fn count(&self) -> u8 { ... }
}
Expand description

Extension trait providing helper functions for particular pieces of data in the 4 byte RTCP header provided by RtcpPacketParser.

Provided Methods§

Source

fn version(&self) -> u8

The RTCP protocol version.

Source

fn type_(&self) -> u8

The RTCP payload type.

Source

fn subtype(&self) -> u8

The sub type of the RTCP packet. (Same value as count).

Source

fn length(&self) -> usize

The advertsied length (in bytes) of the RTCP packet.

Source

fn count(&self) -> u8

The number of records in this RTCP packet. (Same value as subtype).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§