Trait RtcpPacket

Source
pub trait RtcpPacket {
    const MIN_PACKET_LEN: usize;
    const PACKET_TYPE: u8;
    const VERSION: u8 = 2u8;
    const MAX_COUNT: u8 = 31u8;
}
Expand description

A Trait defining RTCP Packet structural data.

Required Associated Constants§

Source

const MIN_PACKET_LEN: usize

The minimum size of a particular RTCP packet. A packet shorter than this value will produce a parsing error.

Source

const PACKET_TYPE: u8

The RTCP type of the particular RTCP packet.

Provided Associated Constants§

Source

const VERSION: u8 = 2u8

RTCP protocol version. The default version of 2 is fine and should not need to be overriden.

Source

const MAX_COUNT: u8 = 31u8

A maximum count that is commonly used across multiple RTCP packet types. A value larger than this will produce a parsing error.

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§