Skip to main content

web_sys/features/
gen_MediaRecorderErrorEvent.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "Event",
9        extends = "::js_sys::Object",
10        js_name = "MediaRecorderErrorEvent",
11        typescript_type = "MediaRecorderErrorEvent"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `MediaRecorderErrorEvent` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`*"]
19    pub type MediaRecorderErrorEvent;
20    #[cfg(feature = "DomException")]
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "MediaRecorderErrorEvent",
25        js_name = "error"
26    )]
27    #[doc = "Getter for the `error` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/error)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEvent`*"]
32    pub fn error(this: &MediaRecorderErrorEvent) -> DomException;
33    #[cfg(feature = "MediaRecorderErrorEventInit")]
34    #[wasm_bindgen(catch, constructor, js_class = "MediaRecorderErrorEvent")]
35    #[doc = "The `new MediaRecorderErrorEvent(..)` constructor, creating a new instance of `MediaRecorderErrorEvent`."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/MediaRecorderErrorEvent)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`, `MediaRecorderErrorEventInit`*"]
40    pub fn new(
41        type_: &str,
42        event_init_dict: &MediaRecorderErrorEventInit,
43    ) -> Result<MediaRecorderErrorEvent, JsValue>;
44}