maxcountryman_web_sys/features/
gen_StorageManager.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = StorageManager , typescript_type = "StorageManager")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `StorageManager` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"]
13    pub type StorageManager;
14    # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = estimate)]
15    #[doc = "The `estimate()` method."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"]
20    pub fn estimate(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>;
21    # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persist)]
22    #[doc = "The `persist()` method."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"]
27    pub fn persist(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>;
28    # [wasm_bindgen (catch , method , structural , js_class = "StorageManager" , js_name = persisted)]
29    #[doc = "The `persisted()` method."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persisted)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"]
34    pub fn persisted(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>;
35}