[][src]Struct web_sys::RtcTrackEventInit

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

The RtcTrackEventInit dictionary.

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

Methods

impl RtcTrackEventInit[src]

pub fn new(
    receiver: &RtcRtpReceiver,
    track: &MediaStreamTrack,
    transceiver: &RtcRtpTransceiver
) -> Self
[src]

Construct a new RtcTrackEventInit.

This API requires the following crate features to be activated: MediaStreamTrack, RtcRtpReceiver, RtcRtpTransceiver, RtcTrackEventInit

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

Change the bubbles field of this object.

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

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

Change the cancelable field of this object.

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

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

Change the composed field of this object.

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

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

Change the receiver field of this object.

This API requires the following crate features to be activated: RtcRtpReceiver, RtcTrackEventInit

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

Change the streams field of this object.

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

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

Change the track field of this object.

This API requires the following crate features to be activated: MediaStreamTrack, RtcTrackEventInit

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

Change the transceiver field of this object.

This API requires the following crate features to be activated: RtcRtpTransceiver, RtcTrackEventInit

Trait Implementations

impl AsRef<JsValue> for RtcTrackEventInit[src]

impl AsRef<Object> for RtcTrackEventInit[src]

impl AsRef<RtcTrackEventInit> for RtcTrackEventInit[src]

impl Clone for RtcTrackEventInit[src]

impl Debug for RtcTrackEventInit[src]

impl Deref for RtcTrackEventInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for RtcTrackEventInit[src]

impl From<JsValue> for RtcTrackEventInit[src]

impl From<RtcTrackEventInit> for JsValue[src]

impl From<RtcTrackEventInit> for Object[src]

impl FromWasmAbi for RtcTrackEventInit[src]

type Abi = <JsValue as FromWasmAbi>::Abi

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

impl IntoWasmAbi for RtcTrackEventInit[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

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

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

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

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

impl JsCast for RtcTrackEventInit[src]

impl OptionFromWasmAbi for RtcTrackEventInit[src]

impl OptionIntoWasmAbi for RtcTrackEventInit[src]

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

impl PartialEq<RtcTrackEventInit> for RtcTrackEventInit[src]

impl RefFromWasmAbi for RtcTrackEventInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<RtcTrackEventInit>

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 StructuralEq for RtcTrackEventInit[src]

impl StructuralPartialEq for RtcTrackEventInit[src]

impl WasmDescribe for RtcTrackEventInit[src]

Auto Trait Implementations

impl RefUnwindSafe for RtcTrackEventInit

impl !Send for RtcTrackEventInit

impl !Sync for RtcTrackEventInit

impl Unpin for RtcTrackEventInit

impl UnwindSafe for RtcTrackEventInit

Blanket Implementations

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

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

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

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

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

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

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.