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