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 = CacheStorage , typescript_type = "CacheStorage")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `CacheStorage` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
13     pub type CacheStorage;
14     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = delete)]
15     #[doc = "The `delete()` method."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
delete(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise20     pub fn delete(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise;
21     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = has)]
22     #[doc = "The `has()` method."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
has(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise27     pub fn has(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise;
28     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = keys)]
29     #[doc = "The `keys()` method."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/keys)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
keys(this: &CacheStorage) -> ::js_sys::Promise34     pub fn keys(this: &CacheStorage) -> ::js_sys::Promise;
35     #[cfg(feature = "Request")]
36     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)]
37     #[doc = "The `match()` method."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Request`*"]
match_with_request(this: &CacheStorage, request: &Request) -> ::js_sys::Promise42     pub fn match_with_request(this: &CacheStorage, request: &Request) -> ::js_sys::Promise;
43     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)]
44     #[doc = "The `match()` method."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
match_with_str(this: &CacheStorage, request: &str) -> ::js_sys::Promise49     pub fn match_with_str(this: &CacheStorage, request: &str) -> ::js_sys::Promise;
50     #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))]
51     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)]
52     #[doc = "The `match()` method."]
53     #[doc = ""]
54     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"]
55     #[doc = ""]
56     #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`, `Request`*"]
match_with_request_and_options( this: &CacheStorage, request: &Request, options: &CacheQueryOptions, ) -> ::js_sys::Promise57     pub fn match_with_request_and_options(
58         this: &CacheStorage,
59         request: &Request,
60         options: &CacheQueryOptions,
61     ) -> ::js_sys::Promise;
62     #[cfg(feature = "CacheQueryOptions")]
63     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = match)]
64     #[doc = "The `match()` method."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`*"]
match_with_str_and_options( this: &CacheStorage, request: &str, options: &CacheQueryOptions, ) -> ::js_sys::Promise69     pub fn match_with_str_and_options(
70         this: &CacheStorage,
71         request: &str,
72         options: &CacheQueryOptions,
73     ) -> ::js_sys::Promise;
74     # [wasm_bindgen (method , structural , js_class = "CacheStorage" , js_name = open)]
75     #[doc = "The `open()` method."]
76     #[doc = ""]
77     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open)"]
78     #[doc = ""]
79     #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"]
open(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise80     pub fn open(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise;
81 }
82