#[non_exhaustive]pub enum RtcpPacket {
SenderReport(SenderReport),
ReceiverReport(ReceiverReport),
SourceDescription(SourceDescription),
Bye(Bye),
App(App),
}Expand description
Any single RTCP packet, dispatched by its 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(SenderReport)
A Sender Report (PT 200).
ReceiverReport(ReceiverReport)
A Receiver Report (PT 201).
SourceDescription(SourceDescription)
A Source Description (PT 202).
Bye(Bye)
A Goodbye (PT 203).
App(App)
An Application-defined packet (PT 204).
Implementations§
Source§impl RtcpPacket
impl RtcpPacket
Sourcepub fn packet_type(&self) -> RtcpPacketType
pub fn packet_type(&self) -> RtcpPacketType
The packet type of this packet.
Trait Implementations§
Source§impl Clone for RtcpPacket
impl Clone for RtcpPacket
Source§fn clone(&self) -> RtcpPacket
fn clone(&self) -> RtcpPacket
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 moreSource§impl Debug for RtcpPacket
impl Debug for RtcpPacket
Source§impl Display for RtcpPacket
impl Display for RtcpPacket
impl Eq for RtcpPacket
Source§impl<'a> Parse<'a> for RtcpPacket
impl<'a> Parse<'a> for RtcpPacket
Source§impl PartialEq for RtcpPacket
impl PartialEq for RtcpPacket
Source§impl Serialize for RtcpPacket
Available on crate feature serde only.
impl Serialize for RtcpPacket
Available on crate feature
serde only.Source§impl Serialize for RtcpPacket
impl Serialize for RtcpPacket
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for RtcpPacket
Auto Trait Implementations§
impl Freeze for RtcpPacket
impl RefUnwindSafe for RtcpPacket
impl Send for RtcpPacket
impl Sync for RtcpPacket
impl Unpin for RtcpPacket
impl UnsafeUnpin for RtcpPacket
impl UnwindSafe for RtcpPacket
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