web_sys/features/
gen_SFrameTransform.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SFrameTransform , typescript_type = "SFrameTransform")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `SFrameTransform` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type SFrameTransform;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , js_name = onerror)]
21 #[doc = "Getter for the `onerror` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/onerror)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"]
26 #[doc = ""]
27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn onerror(this: &SFrameTransform) -> Option<::js_sys::Function>;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , setter , js_class = "SFrameTransform" , js_name = onerror)]
32 #[doc = "Setter for the `onerror` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/onerror)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn set_onerror(this: &SFrameTransform, value: Option<&::js_sys::Function>);
41 #[cfg(web_sys_unstable_apis)]
42 #[cfg(feature = "ReadableStream")]
43 # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , js_name = readable)]
44 #[doc = "Getter for the `readable` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/readable)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `SFrameTransform`*"]
49 #[doc = ""]
50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn readable(this: &SFrameTransform) -> ReadableStream;
53 #[cfg(web_sys_unstable_apis)]
54 #[cfg(feature = "WritableStream")]
55 # [wasm_bindgen (structural , method , getter , js_class = "SFrameTransform" , js_name = writable)]
56 #[doc = "Getter for the `writable` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/writable)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`, `WritableStream`*"]
61 #[doc = ""]
62 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
64 pub fn writable(this: &SFrameTransform) -> WritableStream;
65 #[cfg(web_sys_unstable_apis)]
66 #[wasm_bindgen(catch, constructor, js_class = "SFrameTransform")]
67 #[doc = "The `new SFrameTransform(..)` constructor, creating a new instance of `SFrameTransform`."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/SFrameTransform)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`*"]
72 #[doc = ""]
73 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
75 pub fn new() -> Result<SFrameTransform, JsValue>;
76 #[cfg(web_sys_unstable_apis)]
77 #[cfg(feature = "SFrameTransformOptions")]
78 #[wasm_bindgen(catch, constructor, js_class = "SFrameTransform")]
79 #[doc = "The `new SFrameTransform(..)` constructor, creating a new instance of `SFrameTransform`."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/SFrameTransform)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `SFrameTransform`, `SFrameTransformOptions`*"]
84 #[doc = ""]
85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
87 pub fn new_with_options(options: &SFrameTransformOptions) -> Result<SFrameTransform, JsValue>;
88 #[cfg(web_sys_unstable_apis)]
89 #[cfg(feature = "CryptoKey")]
90 # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)]
91 #[doc = "The `setEncryptionKey()` method."]
92 #[doc = ""]
93 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"]
94 #[doc = ""]
95 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"]
96 #[doc = ""]
97 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
98 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
99 pub fn set_encryption_key(this: &SFrameTransform, key: &CryptoKey) -> ::js_sys::Promise;
100 #[cfg(web_sys_unstable_apis)]
101 #[cfg(feature = "CryptoKey")]
102 # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)]
103 #[doc = "The `setEncryptionKey()` method."]
104 #[doc = ""]
105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"]
108 #[doc = ""]
109 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
111 pub fn set_encryption_key_with_u32(
112 this: &SFrameTransform,
113 key: &CryptoKey,
114 key_id: u32,
115 ) -> ::js_sys::Promise;
116 #[cfg(web_sys_unstable_apis)]
117 #[cfg(feature = "CryptoKey")]
118 # [wasm_bindgen (method , structural , js_class = "SFrameTransform" , js_name = setEncryptionKey)]
119 #[doc = "The `setEncryptionKey()` method."]
120 #[doc = ""]
121 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SFrameTransform/setEncryptionKey)"]
122 #[doc = ""]
123 #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SFrameTransform`*"]
124 #[doc = ""]
125 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
126 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
127 pub fn set_encryption_key_with_f64(
128 this: &SFrameTransform,
129 key: &CryptoKey,
130 key_id: f64,
131 ) -> ::js_sys::Promise;
132}