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