web_sys/features/
gen_VrSubmitFrameResult.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRSubmitFrameResult , typescript_type = "VRSubmitFrameResult")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `VrSubmitFrameResult` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
14 pub type VrSubmitFrameResult;
15 # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = frameNum)]
16 #[doc = "Getter for the `frameNum` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/frameNum)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
21 pub fn frame_num(this: &VrSubmitFrameResult) -> u32;
22 # [wasm_bindgen (structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = base64Image)]
23 #[doc = "Getter for the `base64Image` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
28 pub fn base64_image(this: &VrSubmitFrameResult) -> Option<::alloc::string::String>;
29 #[wasm_bindgen(catch, constructor, js_class = "VRSubmitFrameResult")]
30 #[doc = "The `new VrSubmitFrameResult(..)` constructor, creating a new instance of `VrSubmitFrameResult`."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/VRSubmitFrameResult)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
35 pub fn new() -> Result<VrSubmitFrameResult, JsValue>;
36}