[−][src]Enum mediasoup::producer::Producer
Variants (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.
Regular(RegularProducer)
Direct(DirectProducer)
Implementations
impl Producer
[src]
pub fn id(&self) -> ProducerId
[src]
Producer id.
pub fn kind(&self) -> MediaKind
[src]
Media kind.
pub fn rtp_parameters(&self) -> &RtpParameters
[src]
Media kind.
pub fn type(&self) -> ProducerType
[src]
Producer type.
pub fn paused(&self) -> bool
[src]
Whether the Producer is paused.
pub fn score(&self) -> Vec<ProducerScore>
[src]
Producer score list.
pub fn app_data(&self) -> &AppData
[src]
App custom data.
pub async fn get_stats<'_>(&'_ self) -> Result<Vec<ProducerStat>, RequestError>
[src]
Get Producer stats.
pub async fn pause<'_>(&'_ self) -> Result<(), RequestError>
[src]
Pause the Producer.
pub async fn resume<'_>(&'_ self) -> Result<(), RequestError>
[src]
Resume the Producer.
pub async fn enable_trace_event<'_>(
&'_ self,
types: Vec<ProducerTraceEventType>
) -> Result<(), RequestError>
[src]
&'_ self,
types: Vec<ProducerTraceEventType>
) -> Result<(), RequestError>
Enable 'trace' event.
pub fn on_score<F: Fn(&Vec<ProducerScore>) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_video_orientation_change<F: Fn(ProducerVideoOrientation) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_pause<F: Fn() + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_resume<F: Fn() + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_trace<F: Fn(&ProducerTraceEventData) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_close<F: FnOnce() + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
Trait Implementations
impl Clone for Producer
[src]
impl From<DirectProducer> for Producer
[src]
pub fn from(producer: DirectProducer) -> Self
[src]
impl From<RegularProducer> for Producer
[src]
pub fn from(producer: RegularProducer) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Producer
impl Send for Producer
impl Sync for Producer
impl Unpin for Producer
impl !UnwindSafe for Producer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,