[][src]Struct web_sys::RtcRtpSourceEntry

#[repr(transparent)]
pub struct RtcRtpSourceEntry { /* fields omitted */ }

The RTCRtpSourceEntry dictionary

This API requires the following crate features to be activated: RtcRtpSourceEntry

Methods

impl RtcRtpSourceEntry[src]

pub fn new(
    source: u32,
    timestamp: f64,
    source_type: RtcRtpSourceEntryType
) -> RtcRtpSourceEntry
[src]

Construct a new RTCRtpSourceEntry

This API requires the following crate features to be activated: RtcRtpSourceEntry, RtcRtpSourceEntryType

pub fn audio_level(&mut self, val: f64) -> &mut Self[src]

Configure the audioLevel field of this object

This API requires the following crate features to be activated: RtcRtpSourceEntry

pub fn source(&mut self, val: u32) -> &mut Self[src]

Configure the source field of this object

This API requires the following crate features to be activated: RtcRtpSourceEntry

pub fn timestamp(&mut self, val: f64) -> &mut Self[src]

Configure the timestamp field of this object

This API requires the following crate features to be activated: RtcRtpSourceEntry

pub fn voice_activity_flag(&mut self, val: Option<bool>) -> &mut Self[src]

Configure the voiceActivityFlag field of this object

This API requires the following crate features to be activated: RtcRtpSourceEntry

pub fn source_type(&mut self, val: RtcRtpSourceEntryType) -> &mut Self[src]

Configure the sourceType field of this object

This API requires the following crate features to be activated: RtcRtpSourceEntry, RtcRtpSourceEntryType

Trait Implementations

impl AsRef<JsValue> for RtcRtpSourceEntry[src]

impl From<RtcRtpSourceEntry> for JsValue[src]

impl Clone for RtcRtpSourceEntry[src]

impl Debug for RtcRtpSourceEntry[src]

impl JsCast for RtcRtpSourceEntry[src]

impl RefFromWasmAbi for RtcRtpSourceEntry[src]

type Abi = <Object as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<RtcRtpSourceEntry>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl FromWasmAbi for RtcRtpSourceEntry[src]

type Abi = <Object as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for RtcRtpSourceEntry[src]

type Abi = <Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a RtcRtpSourceEntry[src]

type Abi = <&'a Object as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl WasmDescribe for RtcRtpSourceEntry[src]

impl OptionFromWasmAbi for RtcRtpSourceEntry[src]

impl OptionIntoWasmAbi for RtcRtpSourceEntry[src]

impl<'a> OptionIntoWasmAbi for &'a RtcRtpSourceEntry[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi