web_sys/features/
gen_MediaKeyStatusMap.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "MediaKeyStatusMap",
10 typescript_type = "MediaKeyStatusMap"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `MediaKeyStatusMap` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
18 pub type MediaKeyStatusMap;
19 #[wasm_bindgen(method, getter, js_class = "MediaKeyStatusMap", js_name = "size")]
20 #[doc = "Getter for the `size` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/size)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
25 pub fn size(this: &MediaKeyStatusMap) -> u32;
26 #[wasm_bindgen(catch, method, js_class = "MediaKeyStatusMap", js_name = "forEach")]
27 #[doc = "The `forEach()` method."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/forEach)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
32 pub fn for_each(this: &MediaKeyStatusMap, callback: &::js_sys::Function)
33 -> Result<(), JsValue>;
34 #[wasm_bindgen(catch, method, js_class = "MediaKeyStatusMap", js_name = "get")]
35 #[doc = "The `get()` method."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
40 pub fn get_with_buffer_source(
41 this: &MediaKeyStatusMap,
42 key_id: &::js_sys::Object,
43 ) -> Result<::wasm_bindgen::JsValue, JsValue>;
44 #[wasm_bindgen(catch, method, js_class = "MediaKeyStatusMap", js_name = "get")]
45 #[doc = "The `get()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
50 pub fn get_with_u8_array(
51 this: &MediaKeyStatusMap,
52 key_id: &mut [u8],
53 ) -> Result<::wasm_bindgen::JsValue, JsValue>;
54 #[wasm_bindgen(catch, method, js_class = "MediaKeyStatusMap", js_name = "get")]
55 #[doc = "The `get()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
60 pub fn get_with_js_u8_array(
61 this: &MediaKeyStatusMap,
62 key_id: &::js_sys::Uint8Array,
63 ) -> Result<::wasm_bindgen::JsValue, JsValue>;
64 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap", js_name = "has")]
65 #[doc = "The `has()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
70 pub fn has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool;
71 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap", js_name = "has")]
72 #[doc = "The `has()` method."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
77 pub fn has_with_u8_array(this: &MediaKeyStatusMap, key_id: &mut [u8]) -> bool;
78 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap", js_name = "has")]
79 #[doc = "The `has()` method."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
84 pub fn has_with_js_u8_array(this: &MediaKeyStatusMap, key_id: &::js_sys::Uint8Array) -> bool;
85 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap")]
86 #[doc = "The `entries()` method."]
87 #[doc = ""]
88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/entries)"]
89 #[doc = ""]
90 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
91 pub fn entries(this: &MediaKeyStatusMap) -> ::js_sys::Iterator;
92 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap")]
93 #[doc = "The `keys()` method."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/keys)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
98 pub fn keys(this: &MediaKeyStatusMap) -> ::js_sys::Iterator;
99 #[wasm_bindgen(method, js_class = "MediaKeyStatusMap")]
100 #[doc = "The `values()` method."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/values)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"]
105 pub fn values(this: &MediaKeyStatusMap) -> ::js_sys::Iterator;
106}