1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "C" { 7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WritableStreamDefaultWriter , typescript_type = "WritableStreamDefaultWriter")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `WritableStreamDefaultWriter` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 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 WritableStreamDefaultWriter; 18 #[cfg(web_sys_unstable_apis)] 19 # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , 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/WritableStreamDefaultWriter/closed)"] 23 #[doc = ""] 24 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 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)*"] closed(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise28 pub fn closed(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; 29 #[cfg(web_sys_unstable_apis)] 30 # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = desiredSize)] 31 #[doc = "Getter for the `desiredSize` field of this object."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/desiredSize)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 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)*"] desired_size(this: &WritableStreamDefaultWriter) -> Option<f64>39 pub fn desired_size(this: &WritableStreamDefaultWriter) -> Option<f64>; 40 #[cfg(web_sys_unstable_apis)] 41 # [wasm_bindgen (structural , method , getter , js_class = "WritableStreamDefaultWriter" , js_name = ready)] 42 #[doc = "Getter for the `ready` field of this object."] 43 #[doc = ""] 44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/ready)"] 45 #[doc = ""] 46 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 47 #[doc = ""] 48 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 49 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] ready(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise50 pub fn ready(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; 51 #[cfg(web_sys_unstable_apis)] 52 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] 53 #[doc = "The `abort()` method."] 54 #[doc = ""] 55 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] 56 #[doc = ""] 57 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 58 #[doc = ""] 59 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 60 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] abort(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise61 pub fn abort(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; 62 #[cfg(web_sys_unstable_apis)] 63 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = abort)] 64 #[doc = "The `abort()` method."] 65 #[doc = ""] 66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/abort)"] 67 #[doc = ""] 68 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 69 #[doc = ""] 70 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 71 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] abort_with_reason( this: &WritableStreamDefaultWriter, reason: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise72 pub fn abort_with_reason( 73 this: &WritableStreamDefaultWriter, 74 reason: &::wasm_bindgen::JsValue, 75 ) -> ::js_sys::Promise; 76 #[cfg(web_sys_unstable_apis)] 77 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = close)] 78 #[doc = "The `close()` method."] 79 #[doc = ""] 80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/close)"] 81 #[doc = ""] 82 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 83 #[doc = ""] 84 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 85 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] close(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise86 pub fn close(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; 87 #[cfg(web_sys_unstable_apis)] 88 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = releaseLock)] 89 #[doc = "The `releaseLock()` method."] 90 #[doc = ""] 91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/releaseLock)"] 92 #[doc = ""] 93 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 94 #[doc = ""] 95 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 96 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] release_lock(this: &WritableStreamDefaultWriter)97 pub fn release_lock(this: &WritableStreamDefaultWriter); 98 #[cfg(web_sys_unstable_apis)] 99 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] 100 #[doc = "The `write()` method."] 101 #[doc = ""] 102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] 103 #[doc = ""] 104 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 105 #[doc = ""] 106 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 107 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] write(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise108 pub fn write(this: &WritableStreamDefaultWriter) -> ::js_sys::Promise; 109 #[cfg(web_sys_unstable_apis)] 110 # [wasm_bindgen (method , structural , js_class = "WritableStreamDefaultWriter" , js_name = write)] 111 #[doc = "The `write()` method."] 112 #[doc = ""] 113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WritableStreamDefaultWriter/write)"] 114 #[doc = ""] 115 #[doc = "*This API requires the following crate features to be activated: `WritableStreamDefaultWriter`*"] 116 #[doc = ""] 117 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 118 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] write_with_chunk( this: &WritableStreamDefaultWriter, chunk: &::wasm_bindgen::JsValue, ) -> ::js_sys::Promise119 pub fn write_with_chunk( 120 this: &WritableStreamDefaultWriter, 121 chunk: &::wasm_bindgen::JsValue, 122 ) -> ::js_sys::Promise; 123 } 124