maxcountryman_web_sys/features/
gen_ReadableStreamByobReader.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ReadableStreamBYOBReader , typescript_type = "ReadableStreamBYOBReader")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `ReadableStreamByobReader` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
14    #[doc = ""]
15    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17    pub type ReadableStreamByobReader;
18    #[cfg(web_sys_unstable_apis)]
19    # [wasm_bindgen (structural , method , getter , js_class = "ReadableStreamBYOBReader" , js_name = closed)]
20    #[doc = "Getter for the `closed` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/closed)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
25    #[doc = ""]
26    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
27    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
28    pub fn closed(this: &ReadableStreamByobReader) -> ::js_sys::Promise;
29    #[cfg(web_sys_unstable_apis)]
30    # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)]
31    #[doc = "The `read()` method."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
36    #[doc = ""]
37    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
39    pub fn read_with_array_buffer_view(
40        this: &ReadableStreamByobReader,
41        view: &::js_sys::Object,
42    ) -> ::js_sys::Promise;
43    #[cfg(web_sys_unstable_apis)]
44    # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)]
45    #[doc = "The `read()` method."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
50    #[doc = ""]
51    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
53    pub fn read_with_u8_array(
54        this: &ReadableStreamByobReader,
55        view: &mut [u8],
56    ) -> ::js_sys::Promise;
57    #[cfg(web_sys_unstable_apis)]
58    # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = releaseLock)]
59    #[doc = "The `releaseLock()` method."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/releaseLock)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
64    #[doc = ""]
65    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
67    pub fn release_lock(this: &ReadableStreamByobReader);
68    #[cfg(web_sys_unstable_apis)]
69    # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)]
70    #[doc = "The `cancel()` method."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
75    #[doc = ""]
76    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
78    pub fn cancel(this: &ReadableStreamByobReader) -> ::js_sys::Promise;
79    #[cfg(web_sys_unstable_apis)]
80    # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = cancel)]
81    #[doc = "The `cancel()` method."]
82    #[doc = ""]
83    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/cancel)"]
84    #[doc = ""]
85    #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
86    #[doc = ""]
87    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
88    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
89    pub fn cancel_with_reason(
90        this: &ReadableStreamByobReader,
91        reason: &::wasm_bindgen::JsValue,
92    ) -> ::js_sys::Promise;
93}