[−][src]Trait mediasoup::rtp_observer::RtpObserver
Required methods
pub fn id(&self) -> RtpObserverId
[src]
RtpObserver id.
pub fn paused(&self) -> bool
[src]
Whether the RtpObserver is paused.
pub fn app_data(&self) -> &AppData
[src]
App custom data.
#[must_use]pub fn pause<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Pause the RtpObserver.
#[must_use]pub fn resume<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Resume the RtpObserver.
#[must_use]pub fn add_producer<'life0, 'async_trait>(
&'life0 self,
rtp_observer_add_producer_options: RtpObserverAddProducerOptions
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
rtp_observer_add_producer_options: RtpObserverAddProducerOptions
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Add a Producer to the RtpObserver.
#[must_use]pub fn remove_producer<'life0, 'async_trait>(
&'life0 self,
producer_id: ProducerId
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
producer_id: ProducerId
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Remove a Producer from the RtpObserver.
Implementors
impl RtpObserver for AudioLevelObserver
[src]
pub fn id(&self) -> RtpObserverId
[src]
RtpObserver id.
pub fn paused(&self) -> bool
[src]
Whether the RtpObserver is paused.
pub fn app_data(&self) -> &AppData
[src]
App custom data.
pub fn pause<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Pause the RtpObserver.
pub fn resume<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Resume the RtpObserver.
pub fn add_producer<'life0, 'async_trait>(
&'life0 self,
__arg1: RtpObserverAddProducerOptions
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
__arg1: RtpObserverAddProducerOptions
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Add a Producer to the RtpObserver.
pub fn remove_producer<'life0, 'async_trait>(
&'life0 self,
producer_id: ProducerId
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
producer_id: ProducerId
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Remove a Producer from the RtpObserver.