#[non_exhaustive]pub enum PacketType {
Unsupported,
SenderReport,
ReceiverReport,
SourceDescription,
Goodbye,
ApplicationDefined,
TransportSpecificFeedback,
PayloadSpecificFeedback,
ExtendedReport,
Other(u8),
}Expand description
PacketType specifies the type of an RTCP packet RTCP packet types registered with IANA. See: https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-4
The enum converts to and from the type octet with u8::from / PacketType::from; a value
this crate does not model is kept in PacketType::Other, so a packet of an unknown type
is written back with the type it arrived with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported
No packet type: the type octet 0, and the value of a default header.
SenderReport
Sender Report ([RFC 3550] §6.4.1): a sender’s timing and packet counts.
ReceiverReport
Receiver Report ([RFC 3550] §6.4.2): reception quality from a receiver.
SourceDescription
Source Description ([RFC 3550] §6.5): CNAME and other source metadata.
Goodbye
BYE ([RFC 3550] §6.6): the source is leaving the session.
ApplicationDefined
APP ([RFC 3550] §6.7): application-defined data.
TransportSpecificFeedback
Transport-layer feedback ([RFC 4585]): NACK, TMMBR, TMMBN, transport-wide CC, CCFB.
PayloadSpecificFeedback
Payload-specific feedback ([RFC 4585] §6.3): PLI, SLI, RPSI, FIR, TSTR, TSTN, VBCM, LRR, application-layer feedback (REMB).
ExtendedReport
Extended Report ([RFC 3611]).
Other(u8)
A packet type this crate does not model, with its type octet.