Skip to main content

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