Skip to main content

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