#[non_exhaustive]pub enum RtcpPacketType {
SenderReport,
ReceiverReport,
SourceDescription,
Bye,
App,
Unknown(u8),
}Expand description
The RTCP packet type carried in the common header PT byte (RFC 3550 §6).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SenderReport
Sender Report (PT 200).
ReceiverReport
Receiver Report (PT 201).
SourceDescription
Source Description (PT 202).
Bye
Goodbye (PT 203).
App
Application-defined (PT 204).
Unknown(u8)
A packet type outside the RFC 3550 §6 core set.
Implementations§
Trait Implementations§
Source§impl Clone for RtcpPacketType
impl Clone for RtcpPacketType
Source§fn clone(&self) -> RtcpPacketType
fn clone(&self) -> RtcpPacketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RtcpPacketType
Source§impl Debug for RtcpPacketType
impl Debug for RtcpPacketType
Source§impl Display for RtcpPacketType
impl Display for RtcpPacketType
impl Eq for RtcpPacketType
Source§impl PartialEq for RtcpPacketType
impl PartialEq for RtcpPacketType
Source§impl Serialize for RtcpPacketType
Available on crate feature serde only.
impl Serialize for RtcpPacketType
Available on crate feature
serde only.impl StructuralPartialEq for RtcpPacketType
Auto Trait Implementations§
impl Freeze for RtcpPacketType
impl RefUnwindSafe for RtcpPacketType
impl Send for RtcpPacketType
impl Sync for RtcpPacketType
impl Unpin for RtcpPacketType
impl UnsafeUnpin for RtcpPacketType
impl UnwindSafe for RtcpPacketType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more