web_sys/features/
gen_RcwnPerfStats.rs

1#![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 = RcwnPerfStats)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `RcwnPerfStats` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
12    pub type RcwnPerfStats;
13    #[doc = "Get the `avgLong` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
16    #[wasm_bindgen(method, getter = "avgLong")]
17    pub fn get_avg_long(this: &RcwnPerfStats) -> Option<u32>;
18    #[doc = "Change the `avgLong` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
21    #[wasm_bindgen(method, setter = "avgLong")]
22    pub fn set_avg_long(this: &RcwnPerfStats, val: u32);
23    #[doc = "Get the `avgShort` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
26    #[wasm_bindgen(method, getter = "avgShort")]
27    pub fn get_avg_short(this: &RcwnPerfStats) -> Option<u32>;
28    #[doc = "Change the `avgShort` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
31    #[wasm_bindgen(method, setter = "avgShort")]
32    pub fn set_avg_short(this: &RcwnPerfStats, val: u32);
33    #[doc = "Get the `stddevLong` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
36    #[wasm_bindgen(method, getter = "stddevLong")]
37    pub fn get_stddev_long(this: &RcwnPerfStats) -> Option<u32>;
38    #[doc = "Change the `stddevLong` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
41    #[wasm_bindgen(method, setter = "stddevLong")]
42    pub fn set_stddev_long(this: &RcwnPerfStats, val: u32);
43}
44impl RcwnPerfStats {
45    #[doc = "Construct a new `RcwnPerfStats`."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"]
48    pub fn new() -> Self {
49        #[allow(unused_mut)]
50        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
51        ret
52    }
53    #[deprecated = "Use `set_avg_long()` instead."]
54    pub fn avg_long(&mut self, val: u32) -> &mut Self {
55        self.set_avg_long(val);
56        self
57    }
58    #[deprecated = "Use `set_avg_short()` instead."]
59    pub fn avg_short(&mut self, val: u32) -> &mut Self {
60        self.set_avg_short(val);
61        self
62    }
63    #[deprecated = "Use `set_stddev_long()` instead."]
64    pub fn stddev_long(&mut self, val: u32) -> &mut Self {
65        self.set_stddev_long(val);
66        self
67    }
68}
69impl Default for RcwnPerfStats {
70    fn default() -> Self {
71        Self::new()
72    }
73}