pub struct StatsCollector { /* private fields */ }Implementations§
Source§impl StatsCollector
impl StatsCollector
pub fn new() -> Self
pub fn process_rtcp(&self, packet: &RtcpPacket)
Trait Implementations§
Source§impl Default for StatsCollector
impl Default for StatsCollector
Source§fn default() -> StatsCollector
fn default() -> StatsCollector
Returns the “default value” for a type. Read more
Source§impl RtpReceiverInterceptor for StatsCollector
impl RtpReceiverInterceptor for StatsCollector
fn on_packet_received<'life0, 'life1, 'async_trait>(
&'life0 self,
packet: &'life1 RtpPacket,
) -> Pin<Box<dyn Future<Output = Option<RtcpPacket>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_rtcp_received<'life0, 'life1, 'async_trait>(
&'life0 self,
_packet: &'life1 RtcpPacket,
_transport: Arc<RtpTransport>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn as_nack_stats(self: Arc<Self>) -> Option<Arc<dyn NackStats>>
Source§impl RtpSenderInterceptor for StatsCollector
impl RtpSenderInterceptor for StatsCollector
fn on_packet_sent<'life0, 'life1, 'async_trait>(
&'life0 self,
packet: &'life1 RtpPacket,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn on_rtcp_received<'life0, 'life1, 'async_trait>(
&'life0 self,
_packet: &'life1 RtcpPacket,
_transport: Arc<RtpTransport>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn as_nack_stats(self: Arc<Self>) -> Option<Arc<dyn NackStats>>
Source§impl StatsProvider for StatsCollector
impl StatsProvider for StatsCollector
Auto Trait Implementations§
impl !Freeze for StatsCollector
impl RefUnwindSafe for StatsCollector
impl Send for StatsCollector
impl Sync for StatsCollector
impl Unpin for StatsCollector
impl UnwindSafe for StatsCollector
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