maxcountryman_web_sys/features/
gen_CacheStorage.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "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`*"]
20 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`*"]
27 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`*"]
34 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`*"]
42 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`*"]
49 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`*"]
57 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`*"]
69 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`*"]
80 pub fn open(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise;
81}