[][src]Trait mediasoup::rtp_observer::RtpObserver

pub trait RtpObserver {
    pub fn id(&self) -> RtpObserverId;
pub fn paused(&self) -> bool;
pub fn app_data(&self) -> &AppData;
#[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
;
#[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
;
#[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
;
#[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
; }

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]

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]

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]

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]

Remove a Producer from the RtpObserver.

Loading content...

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]

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]

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]

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]

Remove a Producer from the RtpObserver.

Loading content...