1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeyStatusMap , typescript_type = "MediaKeyStatusMap")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `MediaKeyStatusMap` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] 13 pub type MediaKeyStatusMap; 14 # [wasm_bindgen (structural , method , getter , js_class = "MediaKeyStatusMap" , js_name = size)] 15 #[doc = "Getter for the `size` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/size)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] size(this: &MediaKeyStatusMap) -> u3220 pub fn size(this: &MediaKeyStatusMap) -> u32; 21 # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] 22 #[doc = "The `get()` method."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] get_with_buffer_source( this: &MediaKeyStatusMap, key_id: &::js_sys::Object, ) -> Result<::wasm_bindgen::JsValue, JsValue>27 pub fn get_with_buffer_source( 28 this: &MediaKeyStatusMap, 29 key_id: &::js_sys::Object, 30 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 31 # [wasm_bindgen (catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get)] 32 #[doc = "The `get()` method."] 33 #[doc = ""] 34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] 35 #[doc = ""] 36 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] get_with_u8_array( this: &MediaKeyStatusMap, key_id: &mut [u8], ) -> Result<::wasm_bindgen::JsValue, JsValue>37 pub fn get_with_u8_array( 38 this: &MediaKeyStatusMap, 39 key_id: &mut [u8], 40 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 41 # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] 42 #[doc = "The `has()` method."] 43 #[doc = ""] 44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] 45 #[doc = ""] 46 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool47 pub fn has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool; 48 # [wasm_bindgen (method , structural , js_class = "MediaKeyStatusMap" , js_name = has)] 49 #[doc = "The `has()` method."] 50 #[doc = ""] 51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] 52 #[doc = ""] 53 #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] has_with_u8_array(this: &MediaKeyStatusMap, key_id: &mut [u8]) -> bool54 pub fn has_with_u8_array(this: &MediaKeyStatusMap, key_id: &mut [u8]) -> bool; 55 } 56