Skip to main content

web_sys/features/
gen_SFrameTransform.rs

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