Skip to main content

web_sys/features/
gen_VrServiceTest.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "VRServiceTest",
10        typescript_type = "VRServiceTest"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `VrServiceTest` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"]
18    pub type VrServiceTest;
19    #[wasm_bindgen(
20        catch,
21        method,
22        js_class = "VRServiceTest",
23        js_name = "attachVRController"
24    )]
25    #[doc = "The `attachVRController()` method."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRController)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"]
30    pub fn attach_vr_controller(
31        this: &VrServiceTest,
32        id: &str,
33    ) -> Result<::js_sys::Promise, JsValue>;
34    #[wasm_bindgen(catch, method, js_class = "VRServiceTest", js_name = "attachVRDisplay")]
35    #[doc = "The `attachVRDisplay()` method."]
36    #[doc = ""]
37    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRDisplay)"]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"]
40    pub fn attach_vr_display(this: &VrServiceTest, id: &str) -> Result<::js_sys::Promise, JsValue>;
41}