Skip to main content

web_sys/features/
gen_CountQueuingStrategy.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 = "CountQueuingStrategy",
10        typescript_type = "CountQueuingStrategy"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `CountQueuingStrategy` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"]
18    pub type CountQueuingStrategy;
19    #[wasm_bindgen(
20        method,
21        getter,
22        js_class = "CountQueuingStrategy",
23        js_name = "highWaterMark"
24    )]
25    #[doc = "Getter for the `highWaterMark` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy/highWaterMark)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"]
30    pub fn high_water_mark(this: &CountQueuingStrategy) -> f64;
31    #[wasm_bindgen(method, getter, js_class = "CountQueuingStrategy", js_name = "size")]
32    #[doc = "Getter for the `size` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy/size)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`*"]
37    pub fn size(this: &CountQueuingStrategy) -> ::js_sys::Function;
38    #[cfg(feature = "QueuingStrategyInit")]
39    #[wasm_bindgen(catch, constructor, js_class = "CountQueuingStrategy")]
40    #[doc = "The `new CountQueuingStrategy(..)` constructor, creating a new instance of `CountQueuingStrategy`."]
41    #[doc = ""]
42    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CountQueuingStrategy/CountQueuingStrategy)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `CountQueuingStrategy`, `QueuingStrategyInit`*"]
45    pub fn new(init: &QueuingStrategyInit) -> Result<CountQueuingStrategy, JsValue>;
46}