web_sys/features/
gen_RtcRtpScriptTransform.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 = :: js_sys :: Object , js_name = RTCRtpScriptTransform , typescript_type = "RTCRtpScriptTransform")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `RtcRtpScriptTransform` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`*"]
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 RtcRtpScriptTransform;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "Worker")]
21 #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")]
22 #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn new(worker: &Worker) -> Result<RtcRtpScriptTransform, JsValue>;
31 #[cfg(web_sys_unstable_apis)]
32 #[cfg(feature = "Worker")]
33 #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")]
34 #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 pub fn new_with_options(
43 worker: &Worker,
44 options: &::wasm_bindgen::JsValue,
45 ) -> Result<RtcRtpScriptTransform, JsValue>;
46 #[cfg(web_sys_unstable_apis)]
47 #[cfg(feature = "Worker")]
48 #[wasm_bindgen(catch, constructor, js_class = "RTCRtpScriptTransform")]
49 #[doc = "The `new RtcRtpScriptTransform(..)` constructor, creating a new instance of `RtcRtpScriptTransform`."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpScriptTransform/RTCRtpScriptTransform)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `RtcRtpScriptTransform`, `Worker`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn new_with_options_and_transfer(
58 worker: &Worker,
59 options: &::wasm_bindgen::JsValue,
60 transfer: &::wasm_bindgen::JsValue,
61 ) -> Result<RtcRtpScriptTransform, JsValue>;
62}