#[repr(transparent)]pub struct TextTrack { /* private fields */ }
Expand description
The TextTrack
object
This API requires the following crate features to be activated: TextTrack
Implementations§
source§impl TextTrack
impl TextTrack
source§impl TextTrack
impl TextTrack
source§impl TextTrack
impl TextTrack
sourcepub fn kind(&self) -> TextTrackKind
pub fn kind(&self) -> TextTrackKind
The kind
getter
This API requires the following crate features to be activated: TextTrack
, TextTrackKind
source§impl TextTrack
impl TextTrack
source§impl TextTrack
impl TextTrack
source§impl TextTrack
impl TextTrack
source§impl TextTrack
impl TextTrack
sourcepub fn in_band_metadata_track_dispatch_type(&self) -> String
pub fn in_band_metadata_track_dispatch_type(&self) -> String
The inBandMetadataTrackDispatchType
getter
This API requires the following crate features to be activated: TextTrack
source§impl TextTrack
impl TextTrack
sourcepub fn mode(&self) -> TextTrackMode
pub fn mode(&self) -> TextTrackMode
The mode
getter
This API requires the following crate features to be activated: TextTrack
, TextTrackMode
source§impl TextTrack
impl TextTrack
sourcepub fn set_mode(&self, mode: TextTrackMode)
pub fn set_mode(&self, mode: TextTrackMode)
The mode
setter
This API requires the following crate features to be activated: TextTrack
, TextTrackMode
source§impl TextTrack
impl TextTrack
sourcepub fn cues(&self) -> Option<TextTrackCueList>
pub fn cues(&self) -> Option<TextTrackCueList>
The cues
getter
This API requires the following crate features to be activated: TextTrack
, TextTrackCueList
source§impl TextTrack
impl TextTrack
sourcepub fn active_cues(&self) -> Option<TextTrackCueList>
pub fn active_cues(&self) -> Option<TextTrackCueList>
The activeCues
getter
This API requires the following crate features to be activated: TextTrack
, TextTrackCueList
source§impl TextTrack
impl TextTrack
sourcepub fn oncuechange(&self) -> Option<Function>
pub fn oncuechange(&self) -> Option<Function>
The oncuechange
getter
This API requires the following crate features to be activated: TextTrack
Trait Implementations§
source§impl AsRef<EventTarget> for TextTrack
impl AsRef<EventTarget> for TextTrack
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl From<TextTrack> for EventTarget
impl From<TextTrack> for EventTarget
source§fn from(obj: TextTrack) -> EventTarget
fn from(obj: TextTrack) -> EventTarget
source§impl FromWasmAbi for TextTrack
impl FromWasmAbi for TextTrack
source§impl<'a> IntoWasmAbi for &'a TextTrack
impl<'a> IntoWasmAbi for &'a TextTrack
source§impl IntoWasmAbi for TextTrack
impl IntoWasmAbi for TextTrack
source§impl JsCast for TextTrack
impl JsCast for TextTrack
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 TextTrack
impl OptionFromWasmAbi for TextTrack
source§impl<'a> OptionIntoWasmAbi for &'a TextTrack
impl<'a> OptionIntoWasmAbi for &'a TextTrack
source§impl OptionIntoWasmAbi for TextTrack
impl OptionIntoWasmAbi for TextTrack
source§impl RefFromWasmAbi for TextTrack
impl RefFromWasmAbi for TextTrack
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<TextTrack>
type Anchor = ManuallyDrop<TextTrack>
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 TextTrack
impl !Send for TextTrack
impl !Sync for TextTrack
impl Unpin for TextTrack
impl UnwindSafe for TextTrack
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