maxcountryman_web_sys/features/
gen_SpeechSynthesisErrorEvent.rs

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