pub enum RtpSessionEvent {
PacketReceived(RtpPacket),
Error(Error),
Bye {
ssrc: RtpSsrc,
reason: Option<String>,
},
NewStreamDetected {
ssrc: RtpSsrc,
},
RtcpSenderReport {
ssrc: RtpSsrc,
ntp_timestamp: NtpTimestamp,
rtp_timestamp: RtpTimestamp,
packet_count: u32,
octet_count: u32,
report_blocks: Vec<RtcpReportBlock>,
},
RtcpReceiverReport {
ssrc: RtpSsrc,
report_blocks: Vec<RtcpReportBlock>,
},
}Expand description
Events emitted by the RTP session
Variants§
PacketReceived(RtpPacket)
New packet received
Error(Error)
Error in the session
Bye
BYE RTCP packet received (a party is leaving the session)
Fields
NewStreamDetected
New stream detected with a specific SSRC This event is emitted as soon as the first packet for a new SSRC is received, even if the packet is being held in a jitter buffer.
RtcpSenderReport
RTCP Sender Report received
Fields
§
ntp_timestamp: NtpTimestampNTP timestamp
§
rtp_timestamp: RtpTimestampRTP timestamp
§
report_blocks: Vec<RtcpReportBlock>Report blocks
RtcpReceiverReport
RTCP Receiver Report received
Trait Implementations§
Source§impl Clone for RtpSessionEvent
impl Clone for RtpSessionEvent
Source§fn clone(&self) -> RtpSessionEvent
fn clone(&self) -> RtpSessionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for RtpSessionEvent
impl RefUnwindSafe for RtpSessionEvent
impl Send for RtpSessionEvent
impl Sync for RtpSessionEvent
impl Unpin for RtpSessionEvent
impl UnwindSafe for RtpSessionEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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