Skip to main content

web_sys/features/
gen_ExtendableEvent.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 = "ExtendableEvent",
11        typescript_type = "ExtendableEvent"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `ExtendableEvent` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
19    pub type ExtendableEvent;
20    #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")]
21    #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
26    pub fn new(type_: &str) -> Result<ExtendableEvent, JsValue>;
27    #[cfg(feature = "ExtendableEventInit")]
28    #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")]
29    #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`, `ExtendableEventInit`*"]
34    pub fn new_with_event_init_dict(
35        type_: &str,
36        event_init_dict: &ExtendableEventInit,
37    ) -> Result<ExtendableEvent, JsValue>;
38    #[wasm_bindgen(catch, method, js_class = "ExtendableEvent", js_name = "waitUntil")]
39    #[doc = "The `waitUntil()` method."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"]
44    pub fn wait_until(this: &ExtendableEvent, p: &::js_sys::Promise) -> Result<(), JsValue>;
45}