Struct web_sys::MediaStreamTrack
source · #[repr(transparent)]pub struct MediaStreamTrack { /* private fields */ }
Expand description
The MediaStreamTrack
object
This API requires the following crate features to be activated: MediaStreamTrack
Implementations§
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn apply_constraints(&self) -> Result<Promise, JsValue>
pub fn apply_constraints(&self) -> Result<Promise, JsValue>
The applyConstraints()
method
This API requires the following crate features to be activated: MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn apply_constraints_with_constraints(
&self,
constraints: &MediaTrackConstraints
) -> Result<Promise, JsValue>
pub fn apply_constraints_with_constraints(
&self,
constraints: &MediaTrackConstraints
) -> Result<Promise, JsValue>
The applyConstraints()
method
This API requires the following crate features to be activated: MediaStreamTrack
, MediaTrackConstraints
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn clone(&self) -> MediaStreamTrack
pub fn clone(&self) -> MediaStreamTrack
The clone()
method
This API requires the following crate features to be activated: MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn get_constraints(&self) -> MediaTrackConstraints
pub fn get_constraints(&self) -> MediaTrackConstraints
The getConstraints()
method
This API requires the following crate features to be activated: MediaStreamTrack
, MediaTrackConstraints
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn get_settings(&self) -> MediaTrackSettings
pub fn get_settings(&self) -> MediaTrackSettings
The getSettings()
method
This API requires the following crate features to be activated: MediaStreamTrack
, MediaTrackSettings
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn set_enabled(&self, enabled: bool)
pub fn set_enabled(&self, enabled: bool)
The enabled
setter
This API requires the following crate features to be activated: MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn set_onmute(&self, onmute: Option<&Function>)
pub fn set_onmute(&self, onmute: Option<&Function>)
The onmute
setter
This API requires the following crate features to be activated: MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn set_onunmute(&self, onunmute: Option<&Function>)
pub fn set_onunmute(&self, onunmute: Option<&Function>)
The onunmute
setter
This API requires the following crate features to be activated: MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn ready_state(&self) -> MediaStreamTrackState
pub fn ready_state(&self) -> MediaStreamTrackState
The readyState
getter
This API requires the following crate features to be activated: MediaStreamTrack
, MediaStreamTrackState
source§impl MediaStreamTrack
impl MediaStreamTrack
source§impl MediaStreamTrack
impl MediaStreamTrack
sourcepub fn set_onended(&self, onended: Option<&Function>)
pub fn set_onended(&self, onended: Option<&Function>)
The onended
setter
This API requires the following crate features to be activated: MediaStreamTrack
Trait Implementations§
source§impl AsRef<EventTarget> for MediaStreamTrack
impl AsRef<EventTarget> for MediaStreamTrack
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for MediaStreamTrack
impl AsRef<JsValue> for MediaStreamTrack
source§impl AsRef<MediaStreamTrack> for AudioStreamTrack
impl AsRef<MediaStreamTrack> for AudioStreamTrack
source§fn as_ref(&self) -> &MediaStreamTrack
fn as_ref(&self) -> &MediaStreamTrack
source§impl AsRef<MediaStreamTrack> for VideoStreamTrack
impl AsRef<MediaStreamTrack> for VideoStreamTrack
source§fn as_ref(&self) -> &MediaStreamTrack
fn as_ref(&self) -> &MediaStreamTrack
source§impl AsRef<Object> for MediaStreamTrack
impl AsRef<Object> for MediaStreamTrack
source§impl Clone for MediaStreamTrack
impl Clone for MediaStreamTrack
source§fn clone(&self) -> MediaStreamTrack
fn clone(&self) -> MediaStreamTrack
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaStreamTrack
impl Debug for MediaStreamTrack
source§impl From<AudioStreamTrack> for MediaStreamTrack
impl From<AudioStreamTrack> for MediaStreamTrack
source§fn from(obj: AudioStreamTrack) -> MediaStreamTrack
fn from(obj: AudioStreamTrack) -> MediaStreamTrack
source§impl From<JsValue> for MediaStreamTrack
impl From<JsValue> for MediaStreamTrack
source§fn from(obj: JsValue) -> MediaStreamTrack
fn from(obj: JsValue) -> MediaStreamTrack
source§impl From<MediaStreamTrack> for EventTarget
impl From<MediaStreamTrack> for EventTarget
source§fn from(obj: MediaStreamTrack) -> EventTarget
fn from(obj: MediaStreamTrack) -> EventTarget
source§impl From<MediaStreamTrack> for JsValue
impl From<MediaStreamTrack> for JsValue
source§fn from(obj: MediaStreamTrack) -> JsValue
fn from(obj: MediaStreamTrack) -> JsValue
source§impl From<MediaStreamTrack> for Object
impl From<MediaStreamTrack> for Object
source§fn from(obj: MediaStreamTrack) -> Object
fn from(obj: MediaStreamTrack) -> Object
source§impl From<VideoStreamTrack> for MediaStreamTrack
impl From<VideoStreamTrack> for MediaStreamTrack
source§fn from(obj: VideoStreamTrack) -> MediaStreamTrack
fn from(obj: VideoStreamTrack) -> MediaStreamTrack
source§impl FromWasmAbi for MediaStreamTrack
impl FromWasmAbi for MediaStreamTrack
source§impl<'a> IntoWasmAbi for &'a MediaStreamTrack
impl<'a> IntoWasmAbi for &'a MediaStreamTrack
source§impl IntoWasmAbi for MediaStreamTrack
impl IntoWasmAbi for MediaStreamTrack
source§impl JsCast for MediaStreamTrack
impl JsCast for MediaStreamTrack
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for MediaStreamTrack
impl OptionFromWasmAbi for MediaStreamTrack
source§impl<'a> OptionIntoWasmAbi for &'a MediaStreamTrack
impl<'a> OptionIntoWasmAbi for &'a MediaStreamTrack
source§impl OptionIntoWasmAbi for MediaStreamTrack
impl OptionIntoWasmAbi for MediaStreamTrack
source§impl RefFromWasmAbi for MediaStreamTrack
impl RefFromWasmAbi for MediaStreamTrack
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<MediaStreamTrack>
type Anchor = ManuallyDrop<MediaStreamTrack>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for MediaStreamTrack
impl !Send for MediaStreamTrack
impl !Sync for MediaStreamTrack
impl Unpin for MediaStreamTrack
impl UnwindSafe for MediaStreamTrack
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more