[−][src]Struct web_sys::HtmlMediaElement
The HTMLMediaElement object
This API requires the following crate features to be activated: HtmlMediaElement
Methods
impl HtmlMediaElement[src]
pub fn add_text_track(&self, kind: TextTrackKind) -> TextTrack[src]
The addTextTrack() method
This API requires the following crate features to be activated: HtmlMediaElement, TextTrack, TextTrackKind
impl HtmlMediaElement[src]
pub fn add_text_track_with_label(
&self,
kind: TextTrackKind,
label: &str
) -> TextTrack[src]
&self,
kind: TextTrackKind,
label: &str
) -> TextTrack
The addTextTrack() method
This API requires the following crate features to be activated: HtmlMediaElement, TextTrack, TextTrackKind
impl HtmlMediaElement[src]
pub fn add_text_track_with_label_and_language(
&self,
kind: TextTrackKind,
label: &str,
language: &str
) -> TextTrack[src]
&self,
kind: TextTrackKind,
label: &str,
language: &str
) -> TextTrack
The addTextTrack() method
This API requires the following crate features to be activated: HtmlMediaElement, TextTrack, TextTrackKind
impl HtmlMediaElement[src]
pub fn can_play_type(&self, type_: &str) -> String[src]
The canPlayType() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn fast_seek(&self, time: f64) -> Result<(), JsValue>[src]
The fastSeek() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn has_suspend_taint(&self) -> bool[src]
The hasSuspendTaint() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn load(&self)[src]
The load() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn pause(&self) -> Result<(), JsValue>[src]
The pause() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn play(&self) -> Result<Promise, JsValue>[src]
The play() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn seek_to_next_frame(&self) -> Result<Promise, JsValue>[src]
The seekToNextFrame() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_media_keys(&self, media_keys: Option<&MediaKeys>) -> Promise[src]
The setMediaKeys() method
This API requires the following crate features to be activated: HtmlMediaElement, MediaKeys
impl HtmlMediaElement[src]
pub fn set_visible(&self, a_visible: bool)[src]
The setVisible() method
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn error(&self) -> Option<MediaError>[src]
The error getter
This API requires the following crate features to be activated: HtmlMediaElement, MediaError
impl HtmlMediaElement[src]
pub fn src(&self) -> String[src]
The src getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_src(&self, src: &str)[src]
The src setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn current_src(&self) -> String[src]
The currentSrc getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn src_object(&self) -> Option<MediaStream>[src]
The srcObject getter
This API requires the following crate features to be activated: HtmlMediaElement, MediaStream
impl HtmlMediaElement[src]
pub fn set_src_object(&self, src_object: Option<&MediaStream>)[src]
The srcObject setter
This API requires the following crate features to be activated: HtmlMediaElement, MediaStream
impl HtmlMediaElement[src]
pub fn cross_origin(&self) -> Option<String>[src]
The crossOrigin getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_cross_origin(&self, cross_origin: Option<&str>)[src]
The crossOrigin setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn network_state(&self) -> u16[src]
The networkState getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn preload(&self) -> String[src]
The preload getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_preload(&self, preload: &str)[src]
The preload setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn buffered(&self) -> TimeRanges[src]
The buffered getter
This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges
impl HtmlMediaElement[src]
pub fn ready_state(&self) -> u16[src]
The readyState getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn seeking(&self) -> bool[src]
The seeking getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn current_time(&self) -> f64[src]
The currentTime getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_current_time(&self, current_time: f64)[src]
The currentTime setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn duration(&self) -> f64[src]
The duration getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn paused(&self) -> bool[src]
The paused getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn default_playback_rate(&self) -> f64[src]
The defaultPlaybackRate getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_default_playback_rate(&self, default_playback_rate: f64)[src]
The defaultPlaybackRate setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn playback_rate(&self) -> f64[src]
The playbackRate getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_playback_rate(&self, playback_rate: f64)[src]
The playbackRate setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn played(&self) -> TimeRanges[src]
The played getter
This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges
impl HtmlMediaElement[src]
pub fn seekable(&self) -> TimeRanges[src]
The seekable getter
This API requires the following crate features to be activated: HtmlMediaElement, TimeRanges
impl HtmlMediaElement[src]
pub fn ended(&self) -> bool[src]
The ended getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn autoplay(&self) -> bool[src]
The autoplay getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_autoplay(&self, autoplay: bool)[src]
The autoplay setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn loop_(&self) -> bool[src]
The loop getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_loop(&self, loop_: bool)[src]
The loop setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn controls(&self) -> bool[src]
The controls getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_controls(&self, controls: bool)[src]
The controls setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn volume(&self) -> f64[src]
The volume getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_volume(&self, volume: f64)[src]
The volume setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn muted(&self) -> bool[src]
The muted getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_muted(&self, muted: bool)[src]
The muted setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn default_muted(&self) -> bool[src]
The defaultMuted getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_default_muted(&self, default_muted: bool)[src]
The defaultMuted setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn audio_tracks(&self) -> AudioTrackList[src]
The audioTracks getter
This API requires the following crate features to be activated: AudioTrackList, HtmlMediaElement
impl HtmlMediaElement[src]
pub fn video_tracks(&self) -> VideoTrackList[src]
The videoTracks getter
This API requires the following crate features to be activated: HtmlMediaElement, VideoTrackList
impl HtmlMediaElement[src]
pub fn text_tracks(&self) -> Option<TextTrackList>[src]
The textTracks getter
This API requires the following crate features to be activated: HtmlMediaElement, TextTrackList
impl HtmlMediaElement[src]
pub fn media_keys(&self) -> Option<MediaKeys>[src]
The mediaKeys getter
This API requires the following crate features to be activated: HtmlMediaElement, MediaKeys
impl HtmlMediaElement[src]
pub fn onencrypted(&self) -> Option<Function>[src]
The onencrypted getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_onencrypted(&self, onencrypted: Option<&Function>)[src]
The onencrypted setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn onwaitingforkey(&self) -> Option<Function>[src]
The onwaitingforkey getter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub fn set_onwaitingforkey(&self, onwaitingforkey: Option<&Function>)[src]
The onwaitingforkey setter
This API requires the following crate features to be activated: HtmlMediaElement
impl HtmlMediaElement[src]
pub const NETWORK_EMPTY: u16[src]
impl HtmlMediaElement[src]
pub const NETWORK_IDLE: u16[src]
impl HtmlMediaElement[src]
pub const NETWORK_LOADING: u16[src]
impl HtmlMediaElement[src]
pub const NETWORK_NO_SOURCE: u16[src]
impl HtmlMediaElement[src]
pub const HAVE_NOTHING: u16[src]
impl HtmlMediaElement[src]
pub const HAVE_METADATA: u16[src]
impl HtmlMediaElement[src]
pub const HAVE_CURRENT_DATA: u16[src]
impl HtmlMediaElement[src]
pub const HAVE_FUTURE_DATA: u16[src]
impl HtmlMediaElement[src]
pub const HAVE_ENOUGH_DATA: u16[src]
Methods from Deref<Target = HtmlElement>
pub fn blur(&self) -> Result<(), JsValue>[src]
The blur() method
This API requires the following crate features to be activated: HtmlElement
pub fn click(&self)[src]
The click() method
This API requires the following crate features to be activated: HtmlElement
pub fn focus(&self) -> Result<(), JsValue>[src]
The focus() method
This API requires the following crate features to be activated: HtmlElement
pub fn title(&self) -> String[src]
The title getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_title(&self, title: &str)[src]
The title setter
This API requires the following crate features to be activated: HtmlElement
pub fn lang(&self) -> String[src]
The lang getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_lang(&self, lang: &str)[src]
The lang setter
This API requires the following crate features to be activated: HtmlElement
pub fn dir(&self) -> String[src]
The dir getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_dir(&self, dir: &str)[src]
The dir setter
This API requires the following crate features to be activated: HtmlElement
pub fn dataset(&self) -> DomStringMap[src]
The dataset getter
This API requires the following crate features to be activated: DomStringMap, HtmlElement
pub fn inner_text(&self) -> String[src]
The innerText getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_inner_text(&self, inner_text: &str)[src]
The innerText setter
This API requires the following crate features to be activated: HtmlElement
[src]
The hidden getter
This API requires the following crate features to be activated: HtmlElement
[src]
The hidden setter
This API requires the following crate features to be activated: HtmlElement
pub fn tab_index(&self) -> i32[src]
The tabIndex getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_tab_index(&self, tab_index: i32)[src]
The tabIndex setter
This API requires the following crate features to be activated: HtmlElement
pub fn access_key(&self) -> String[src]
The accessKey getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_access_key(&self, access_key: &str)[src]
The accessKey setter
This API requires the following crate features to be activated: HtmlElement
pub fn access_key_label(&self) -> String[src]
The accessKeyLabel getter
This API requires the following crate features to be activated: HtmlElement
pub fn draggable(&self) -> bool[src]
The draggable getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_draggable(&self, draggable: bool)[src]
The draggable setter
This API requires the following crate features to be activated: HtmlElement
pub fn content_editable(&self) -> String[src]
The contentEditable getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_content_editable(&self, content_editable: &str)[src]
The contentEditable setter
This API requires the following crate features to be activated: HtmlElement
pub fn is_content_editable(&self) -> bool[src]
The isContentEditable getter
This API requires the following crate features to be activated: HtmlElement
pub fn spellcheck(&self) -> bool[src]
The spellcheck getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_spellcheck(&self, spellcheck: bool)[src]
The spellcheck setter
This API requires the following crate features to be activated: HtmlElement
pub fn style(&self) -> CssStyleDeclaration[src]
The style getter
This API requires the following crate features to be activated: CssStyleDeclaration, HtmlElement
pub fn offset_parent(&self) -> Option<Element>[src]
The offsetParent getter
This API requires the following crate features to be activated: Element, HtmlElement
pub fn offset_top(&self) -> i32[src]
The offsetTop getter
This API requires the following crate features to be activated: HtmlElement
pub fn offset_left(&self) -> i32[src]
The offsetLeft getter
This API requires the following crate features to be activated: HtmlElement
pub fn offset_width(&self) -> i32[src]
The offsetWidth getter
This API requires the following crate features to be activated: HtmlElement
pub fn offset_height(&self) -> i32[src]
The offsetHeight getter
This API requires the following crate features to be activated: HtmlElement
pub fn oncopy(&self) -> Option<Function>[src]
The oncopy getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oncopy(&self, oncopy: Option<&Function>)[src]
The oncopy setter
This API requires the following crate features to be activated: HtmlElement
pub fn oncut(&self) -> Option<Function>[src]
The oncut getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oncut(&self, oncut: Option<&Function>)[src]
The oncut setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpaste(&self) -> Option<Function>[src]
The onpaste getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpaste(&self, onpaste: Option<&Function>)[src]
The onpaste setter
This API requires the following crate features to be activated: HtmlElement
pub fn onabort(&self) -> Option<Function>[src]
The onabort getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onabort(&self, onabort: Option<&Function>)[src]
The onabort setter
This API requires the following crate features to be activated: HtmlElement
pub fn onblur(&self) -> Option<Function>[src]
The onblur getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onblur(&self, onblur: Option<&Function>)[src]
The onblur setter
This API requires the following crate features to be activated: HtmlElement
pub fn onfocus(&self) -> Option<Function>[src]
The onfocus getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onfocus(&self, onfocus: Option<&Function>)[src]
The onfocus setter
This API requires the following crate features to be activated: HtmlElement
pub fn onauxclick(&self) -> Option<Function>[src]
The onauxclick getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onauxclick(&self, onauxclick: Option<&Function>)[src]
The onauxclick setter
This API requires the following crate features to be activated: HtmlElement
pub fn oncanplay(&self) -> Option<Function>[src]
The oncanplay getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oncanplay(&self, oncanplay: Option<&Function>)[src]
The oncanplay setter
This API requires the following crate features to be activated: HtmlElement
pub fn oncanplaythrough(&self) -> Option<Function>[src]
The oncanplaythrough getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oncanplaythrough(&self, oncanplaythrough: Option<&Function>)[src]
The oncanplaythrough setter
This API requires the following crate features to be activated: HtmlElement
pub fn onchange(&self) -> Option<Function>[src]
The onchange getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onchange(&self, onchange: Option<&Function>)[src]
The onchange setter
This API requires the following crate features to be activated: HtmlElement
pub fn onclick(&self) -> Option<Function>[src]
The onclick getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onclick(&self, onclick: Option<&Function>)[src]
The onclick setter
This API requires the following crate features to be activated: HtmlElement
pub fn onclose(&self) -> Option<Function>[src]
The onclose getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onclose(&self, onclose: Option<&Function>)[src]
The onclose setter
This API requires the following crate features to be activated: HtmlElement
pub fn oncontextmenu(&self) -> Option<Function>[src]
The oncontextmenu getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oncontextmenu(&self, oncontextmenu: Option<&Function>)[src]
The oncontextmenu setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondblclick(&self) -> Option<Function>[src]
The ondblclick getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondblclick(&self, ondblclick: Option<&Function>)[src]
The ondblclick setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondrag(&self) -> Option<Function>[src]
The ondrag getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondrag(&self, ondrag: Option<&Function>)[src]
The ondrag setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragend(&self) -> Option<Function>[src]
The ondragend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragend(&self, ondragend: Option<&Function>)[src]
The ondragend setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragenter(&self) -> Option<Function>[src]
The ondragenter getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragenter(&self, ondragenter: Option<&Function>)[src]
The ondragenter setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragexit(&self) -> Option<Function>[src]
The ondragexit getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragexit(&self, ondragexit: Option<&Function>)[src]
The ondragexit setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragleave(&self) -> Option<Function>[src]
The ondragleave getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragleave(&self, ondragleave: Option<&Function>)[src]
The ondragleave setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragover(&self) -> Option<Function>[src]
The ondragover getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragover(&self, ondragover: Option<&Function>)[src]
The ondragover setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondragstart(&self) -> Option<Function>[src]
The ondragstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondragstart(&self, ondragstart: Option<&Function>)[src]
The ondragstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondrop(&self) -> Option<Function>[src]
The ondrop getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondrop(&self, ondrop: Option<&Function>)[src]
The ondrop setter
This API requires the following crate features to be activated: HtmlElement
pub fn ondurationchange(&self) -> Option<Function>[src]
The ondurationchange getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ondurationchange(&self, ondurationchange: Option<&Function>)[src]
The ondurationchange setter
This API requires the following crate features to be activated: HtmlElement
pub fn onemptied(&self) -> Option<Function>[src]
The onemptied getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onemptied(&self, onemptied: Option<&Function>)[src]
The onemptied setter
This API requires the following crate features to be activated: HtmlElement
pub fn onended(&self) -> Option<Function>[src]
The onended getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onended(&self, onended: Option<&Function>)[src]
The onended setter
This API requires the following crate features to be activated: HtmlElement
pub fn oninput(&self) -> Option<Function>[src]
The oninput getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oninput(&self, oninput: Option<&Function>)[src]
The oninput setter
This API requires the following crate features to be activated: HtmlElement
pub fn oninvalid(&self) -> Option<Function>[src]
The oninvalid getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_oninvalid(&self, oninvalid: Option<&Function>)[src]
The oninvalid setter
This API requires the following crate features to be activated: HtmlElement
pub fn onkeydown(&self) -> Option<Function>[src]
The onkeydown getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onkeydown(&self, onkeydown: Option<&Function>)[src]
The onkeydown setter
This API requires the following crate features to be activated: HtmlElement
pub fn onkeypress(&self) -> Option<Function>[src]
The onkeypress getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onkeypress(&self, onkeypress: Option<&Function>)[src]
The onkeypress setter
This API requires the following crate features to be activated: HtmlElement
pub fn onkeyup(&self) -> Option<Function>[src]
The onkeyup getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onkeyup(&self, onkeyup: Option<&Function>)[src]
The onkeyup setter
This API requires the following crate features to be activated: HtmlElement
pub fn onload(&self) -> Option<Function>[src]
The onload getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onload(&self, onload: Option<&Function>)[src]
The onload setter
This API requires the following crate features to be activated: HtmlElement
pub fn onloadeddata(&self) -> Option<Function>[src]
The onloadeddata getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onloadeddata(&self, onloadeddata: Option<&Function>)[src]
The onloadeddata setter
This API requires the following crate features to be activated: HtmlElement
pub fn onloadedmetadata(&self) -> Option<Function>[src]
The onloadedmetadata getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onloadedmetadata(&self, onloadedmetadata: Option<&Function>)[src]
The onloadedmetadata setter
This API requires the following crate features to be activated: HtmlElement
pub fn onloadend(&self) -> Option<Function>[src]
The onloadend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onloadend(&self, onloadend: Option<&Function>)[src]
The onloadend setter
This API requires the following crate features to be activated: HtmlElement
pub fn onloadstart(&self) -> Option<Function>[src]
The onloadstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onloadstart(&self, onloadstart: Option<&Function>)[src]
The onloadstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmousedown(&self) -> Option<Function>[src]
The onmousedown getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmousedown(&self, onmousedown: Option<&Function>)[src]
The onmousedown setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmouseenter(&self) -> Option<Function>[src]
The onmouseenter getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmouseenter(&self, onmouseenter: Option<&Function>)[src]
The onmouseenter setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmouseleave(&self) -> Option<Function>[src]
The onmouseleave getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmouseleave(&self, onmouseleave: Option<&Function>)[src]
The onmouseleave setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmousemove(&self) -> Option<Function>[src]
The onmousemove getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmousemove(&self, onmousemove: Option<&Function>)[src]
The onmousemove setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmouseout(&self) -> Option<Function>[src]
The onmouseout getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmouseout(&self, onmouseout: Option<&Function>)[src]
The onmouseout setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmouseover(&self) -> Option<Function>[src]
The onmouseover getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmouseover(&self, onmouseover: Option<&Function>)[src]
The onmouseover setter
This API requires the following crate features to be activated: HtmlElement
pub fn onmouseup(&self) -> Option<Function>[src]
The onmouseup getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onmouseup(&self, onmouseup: Option<&Function>)[src]
The onmouseup setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwheel(&self) -> Option<Function>[src]
The onwheel getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwheel(&self, onwheel: Option<&Function>)[src]
The onwheel setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpause(&self) -> Option<Function>[src]
The onpause getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpause(&self, onpause: Option<&Function>)[src]
The onpause setter
This API requires the following crate features to be activated: HtmlElement
pub fn onplay(&self) -> Option<Function>[src]
The onplay getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onplay(&self, onplay: Option<&Function>)[src]
The onplay setter
This API requires the following crate features to be activated: HtmlElement
pub fn onplaying(&self) -> Option<Function>[src]
The onplaying getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onplaying(&self, onplaying: Option<&Function>)[src]
The onplaying setter
This API requires the following crate features to be activated: HtmlElement
pub fn onprogress(&self) -> Option<Function>[src]
The onprogress getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onprogress(&self, onprogress: Option<&Function>)[src]
The onprogress setter
This API requires the following crate features to be activated: HtmlElement
pub fn onratechange(&self) -> Option<Function>[src]
The onratechange getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onratechange(&self, onratechange: Option<&Function>)[src]
The onratechange setter
This API requires the following crate features to be activated: HtmlElement
pub fn onreset(&self) -> Option<Function>[src]
The onreset getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onreset(&self, onreset: Option<&Function>)[src]
The onreset setter
This API requires the following crate features to be activated: HtmlElement
pub fn onresize(&self) -> Option<Function>[src]
The onresize getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onresize(&self, onresize: Option<&Function>)[src]
The onresize setter
This API requires the following crate features to be activated: HtmlElement
pub fn onscroll(&self) -> Option<Function>[src]
The onscroll getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onscroll(&self, onscroll: Option<&Function>)[src]
The onscroll setter
This API requires the following crate features to be activated: HtmlElement
pub fn onseeked(&self) -> Option<Function>[src]
The onseeked getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onseeked(&self, onseeked: Option<&Function>)[src]
The onseeked setter
This API requires the following crate features to be activated: HtmlElement
pub fn onseeking(&self) -> Option<Function>[src]
The onseeking getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onseeking(&self, onseeking: Option<&Function>)[src]
The onseeking setter
This API requires the following crate features to be activated: HtmlElement
pub fn onselect(&self) -> Option<Function>[src]
The onselect getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onselect(&self, onselect: Option<&Function>)[src]
The onselect setter
This API requires the following crate features to be activated: HtmlElement
pub fn onshow(&self) -> Option<Function>[src]
The onshow getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onshow(&self, onshow: Option<&Function>)[src]
The onshow setter
This API requires the following crate features to be activated: HtmlElement
pub fn onstalled(&self) -> Option<Function>[src]
The onstalled getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onstalled(&self, onstalled: Option<&Function>)[src]
The onstalled setter
This API requires the following crate features to be activated: HtmlElement
pub fn onsubmit(&self) -> Option<Function>[src]
The onsubmit getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onsubmit(&self, onsubmit: Option<&Function>)[src]
The onsubmit setter
This API requires the following crate features to be activated: HtmlElement
pub fn onsuspend(&self) -> Option<Function>[src]
The onsuspend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onsuspend(&self, onsuspend: Option<&Function>)[src]
The onsuspend setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontimeupdate(&self) -> Option<Function>[src]
The ontimeupdate getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontimeupdate(&self, ontimeupdate: Option<&Function>)[src]
The ontimeupdate setter
This API requires the following crate features to be activated: HtmlElement
pub fn onvolumechange(&self) -> Option<Function>[src]
The onvolumechange getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onvolumechange(&self, onvolumechange: Option<&Function>)[src]
The onvolumechange setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwaiting(&self) -> Option<Function>[src]
The onwaiting getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwaiting(&self, onwaiting: Option<&Function>)[src]
The onwaiting setter
This API requires the following crate features to be activated: HtmlElement
pub fn onselectstart(&self) -> Option<Function>[src]
The onselectstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onselectstart(&self, onselectstart: Option<&Function>)[src]
The onselectstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontoggle(&self) -> Option<Function>[src]
The ontoggle getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontoggle(&self, ontoggle: Option<&Function>)[src]
The ontoggle setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointercancel(&self) -> Option<Function>[src]
The onpointercancel getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointercancel(&self, onpointercancel: Option<&Function>)[src]
The onpointercancel setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerdown(&self) -> Option<Function>[src]
The onpointerdown getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerdown(&self, onpointerdown: Option<&Function>)[src]
The onpointerdown setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerup(&self) -> Option<Function>[src]
The onpointerup getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerup(&self, onpointerup: Option<&Function>)[src]
The onpointerup setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointermove(&self) -> Option<Function>[src]
The onpointermove getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointermove(&self, onpointermove: Option<&Function>)[src]
The onpointermove setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerout(&self) -> Option<Function>[src]
The onpointerout getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerout(&self, onpointerout: Option<&Function>)[src]
The onpointerout setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerover(&self) -> Option<Function>[src]
The onpointerover getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerover(&self, onpointerover: Option<&Function>)[src]
The onpointerover setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerenter(&self) -> Option<Function>[src]
The onpointerenter getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerenter(&self, onpointerenter: Option<&Function>)[src]
The onpointerenter setter
This API requires the following crate features to be activated: HtmlElement
pub fn onpointerleave(&self) -> Option<Function>[src]
The onpointerleave getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onpointerleave(&self, onpointerleave: Option<&Function>)[src]
The onpointerleave setter
This API requires the following crate features to be activated: HtmlElement
pub fn ongotpointercapture(&self) -> Option<Function>[src]
The ongotpointercapture getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ongotpointercapture(&self, ongotpointercapture: Option<&Function>)[src]
The ongotpointercapture setter
This API requires the following crate features to be activated: HtmlElement
pub fn onlostpointercapture(&self) -> Option<Function>[src]
The onlostpointercapture getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onlostpointercapture(&self, onlostpointercapture: Option<&Function>)[src]
The onlostpointercapture setter
This API requires the following crate features to be activated: HtmlElement
pub fn onanimationcancel(&self) -> Option<Function>[src]
The onanimationcancel getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onanimationcancel(&self, onanimationcancel: Option<&Function>)[src]
The onanimationcancel setter
This API requires the following crate features to be activated: HtmlElement
pub fn onanimationend(&self) -> Option<Function>[src]
The onanimationend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onanimationend(&self, onanimationend: Option<&Function>)[src]
The onanimationend setter
This API requires the following crate features to be activated: HtmlElement
pub fn onanimationiteration(&self) -> Option<Function>[src]
The onanimationiteration getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onanimationiteration(&self, onanimationiteration: Option<&Function>)[src]
The onanimationiteration setter
This API requires the following crate features to be activated: HtmlElement
pub fn onanimationstart(&self) -> Option<Function>[src]
The onanimationstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onanimationstart(&self, onanimationstart: Option<&Function>)[src]
The onanimationstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontransitioncancel(&self) -> Option<Function>[src]
The ontransitioncancel getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontransitioncancel(&self, ontransitioncancel: Option<&Function>)[src]
The ontransitioncancel setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontransitionend(&self) -> Option<Function>[src]
The ontransitionend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontransitionend(&self, ontransitionend: Option<&Function>)[src]
The ontransitionend setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontransitionrun(&self) -> Option<Function>[src]
The ontransitionrun getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontransitionrun(&self, ontransitionrun: Option<&Function>)[src]
The ontransitionrun setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontransitionstart(&self) -> Option<Function>[src]
The ontransitionstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontransitionstart(&self, ontransitionstart: Option<&Function>)[src]
The ontransitionstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwebkitanimationend(&self) -> Option<Function>[src]
The onwebkitanimationend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwebkitanimationend(&self, onwebkitanimationend: Option<&Function>)[src]
The onwebkitanimationend setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwebkitanimationiteration(&self) -> Option<Function>[src]
The onwebkitanimationiteration getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwebkitanimationiteration(
&self,
onwebkitanimationiteration: Option<&Function>
)[src]
&self,
onwebkitanimationiteration: Option<&Function>
)
The onwebkitanimationiteration setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwebkitanimationstart(&self) -> Option<Function>[src]
The onwebkitanimationstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwebkitanimationstart(
&self,
onwebkitanimationstart: Option<&Function>
)[src]
&self,
onwebkitanimationstart: Option<&Function>
)
The onwebkitanimationstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn onwebkittransitionend(&self) -> Option<Function>[src]
The onwebkittransitionend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onwebkittransitionend(
&self,
onwebkittransitionend: Option<&Function>
)[src]
&self,
onwebkittransitionend: Option<&Function>
)
The onwebkittransitionend setter
This API requires the following crate features to be activated: HtmlElement
pub fn onerror(&self) -> Option<Function>[src]
The onerror getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_onerror(&self, onerror: Option<&Function>)[src]
The onerror setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontouchstart(&self) -> Option<Function>[src]
The ontouchstart getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontouchstart(&self, ontouchstart: Option<&Function>)[src]
The ontouchstart setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontouchend(&self) -> Option<Function>[src]
The ontouchend getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontouchend(&self, ontouchend: Option<&Function>)[src]
The ontouchend setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontouchmove(&self) -> Option<Function>[src]
The ontouchmove getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontouchmove(&self, ontouchmove: Option<&Function>)[src]
The ontouchmove setter
This API requires the following crate features to be activated: HtmlElement
pub fn ontouchcancel(&self) -> Option<Function>[src]
The ontouchcancel getter
This API requires the following crate features to be activated: HtmlElement
pub fn set_ontouchcancel(&self, ontouchcancel: Option<&Function>)[src]
The ontouchcancel setter
This API requires the following crate features to be activated: HtmlElement
Trait Implementations
impl Clone for HtmlMediaElement[src]
fn clone(&self) -> HtmlMediaElement[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl AsRef<HtmlMediaElement> for HtmlAudioElement[src]
fn as_ref(&self) -> &HtmlMediaElement[src]
impl AsRef<JsValue> for HtmlMediaElement[src]
impl AsRef<HtmlElement> for HtmlMediaElement[src]
fn as_ref(&self) -> &HtmlElement[src]
impl AsRef<Element> for HtmlMediaElement[src]
impl AsRef<Node> for HtmlMediaElement[src]
impl AsRef<EventTarget> for HtmlMediaElement[src]
fn as_ref(&self) -> &EventTarget[src]
impl AsRef<Object> for HtmlMediaElement[src]
impl AsRef<HtmlMediaElement> for HtmlVideoElement[src]
fn as_ref(&self) -> &HtmlMediaElement[src]
impl From<HtmlAudioElement> for HtmlMediaElement[src]
fn from(obj: HtmlAudioElement) -> HtmlMediaElement[src]
impl From<JsValue> for HtmlMediaElement[src]
fn from(obj: JsValue) -> HtmlMediaElement[src]
impl From<HtmlMediaElement> for JsValue[src]
fn from(obj: HtmlMediaElement) -> JsValue[src]
impl From<HtmlMediaElement> for HtmlElement[src]
fn from(obj: HtmlMediaElement) -> HtmlElement[src]
impl From<HtmlMediaElement> for Element[src]
fn from(obj: HtmlMediaElement) -> Element[src]
impl From<HtmlMediaElement> for Node[src]
fn from(obj: HtmlMediaElement) -> Node[src]
impl From<HtmlMediaElement> for EventTarget[src]
fn from(obj: HtmlMediaElement) -> EventTarget[src]
impl From<HtmlMediaElement> for Object[src]
fn from(obj: HtmlMediaElement) -> Object[src]
impl From<HtmlVideoElement> for HtmlMediaElement[src]
fn from(obj: HtmlVideoElement) -> HtmlMediaElement[src]
impl Deref for HtmlMediaElement[src]
type Target = HtmlElement
The resulting type after dereferencing.
fn deref(&self) -> &HtmlElement[src]
impl Debug for HtmlMediaElement[src]
impl JsCast for HtmlMediaElement[src]
fn instanceof(val: &JsValue) -> bool[src]
fn unchecked_from_js(val: JsValue) -> Self[src]
fn unchecked_from_js_ref(val: &JsValue) -> &Self[src]
default fn is_instance_of<T>(&self) -> bool where
T: JsCast, [src]
T: JsCast,
Test whether this JS value is an instance of the type T. Read more
default fn dyn_into<T>(self) -> Result<T, Self> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn dyn_ref<T>(&self) -> Option<&T> where
T: JsCast, [src]
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
default fn unchecked_into<T>(self) -> T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
default fn unchecked_ref<T>(&self) -> &T where
T: JsCast, [src]
T: JsCast,
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
impl RefFromWasmAbi for HtmlMediaElement[src]
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<HtmlMediaElement>
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
unsafe fn ref_from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self::Anchor[src]
impl IntoWasmAbi for HtmlMediaElement[src]
type Abi = <JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl<'a> IntoWasmAbi for &'a HtmlMediaElement[src]
type Abi = <&'a JsValue as IntoWasmAbi>::Abi
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
fn into_abi(self, extra: &mut dyn Stack) -> Self::Abi[src]
impl WasmDescribe for HtmlMediaElement[src]
impl FromWasmAbi for HtmlMediaElement[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
unsafe fn from_abi(js: Self::Abi, extra: &mut dyn Stack) -> Self[src]
impl OptionIntoWasmAbi for HtmlMediaElement[src]
impl<'a> OptionIntoWasmAbi for &'a HtmlMediaElement[src]
impl OptionFromWasmAbi for HtmlMediaElement[src]
Auto Trait Implementations
impl !Send for HtmlMediaElement
impl !Sync for HtmlMediaElement
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi, [src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi