summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/web-sys/src
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src')
-rw-r--r--vendor/web-sys/src/features/gen_AudioContext.rs59
-rw-r--r--vendor/web-sys/src/features/gen_AudioContextLatencyCategory.rs13
-rw-r--r--vendor/web-sys/src/features/gen_AudioContextOptions.rs35
-rw-r--r--vendor/web-sys/src/features/gen_AudioSinkInfo.rs31
-rw-r--r--vendor/web-sys/src/features/gen_AudioSinkOptions.rs51
-rw-r--r--vendor/web-sys/src/features/gen_AudioSinkType.rs (renamed from vendor/web-sys/src/features/gen_GpuRenderPassTimestampLocation.rs)9
-rw-r--r--vendor/web-sys/src/features/gen_AudioTrackList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs20
-rw-r--r--vendor/web-sys/src/features/gen_Csp.rs402
-rw-r--r--vendor/web-sys/src/features/gen_CspPolicies.rs45
-rw-r--r--vendor/web-sys/src/features/gen_CspReport.rs46
-rw-r--r--vendor/web-sys/src/features/gen_CspReportProperties.rs181
-rw-r--r--vendor/web-sys/src/features/gen_CssRuleList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_CssStyleDeclaration.rs2
-rw-r--r--vendor/web-sys/src/features/gen_CssStyleSheet.rs21
-rw-r--r--vendor/web-sys/src/features/gen_DataTransferItemList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_Document.rs27
-rw-r--r--vendor/web-sys/src/features/gen_DomMatrix2dInit.rs184
-rw-r--r--vendor/web-sys/src/features/gen_DomMatrixInit.rs327
-rw-r--r--vendor/web-sys/src/features/gen_DomRectList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_DomStringList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_DomStringMap.rs6
-rw-r--r--vendor/web-sys/src/features/gen_DomTokenList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_FileList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs4
-rw-r--r--vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs2
-rw-r--r--vendor/web-sys/src/features/gen_GetNotificationOptions.rs41
-rw-r--r--vendor/web-sys/src/features/gen_Gpu.rs12
-rw-r--r--vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs5
-rw-r--r--vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs12
-rw-r--r--vendor/web-sys/src/features/gen_GpuComputePassTimestampWrites.rs (renamed from vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrite.rs)43
-rw-r--r--vendor/web-sys/src/features/gen_GpuDepthStencilState.rs12
-rw-r--r--vendor/web-sys/src/features/gen_GpuDeviceLostInfo.rs5
-rw-r--r--vendor/web-sys/src/features/gen_GpuDeviceLostReason.rs1
-rw-r--r--vendor/web-sys/src/features/gen_GpuExternalTexture.rs11
-rw-r--r--vendor/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs10
-rw-r--r--vendor/web-sys/src/features/gen_GpuFeatureName.rs3
-rw-r--r--vendor/web-sys/src/features/gen_GpuPipelineError.rs43
-rw-r--r--vendor/web-sys/src/features/gen_GpuPipelineErrorInit.rs52
-rw-r--r--vendor/web-sys/src/features/gen_GpuPipelineErrorReason.rs (renamed from vendor/web-sys/src/features/gen_GpuComputePassTimestampLocation.rs)10
-rw-r--r--vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs26
-rw-r--r--vendor/web-sys/src/features/gen_GpuRenderPassDescriptor.rs5
-rw-r--r--vendor/web-sys/src/features/gen_GpuRenderPassEncoder.rs26
-rw-r--r--vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrites.rs (renamed from vendor/web-sys/src/features/gen_GpuComputePassTimestampWrite.rs)43
-rw-r--r--vendor/web-sys/src/features/gen_GpuShaderModule.rs8
-rw-r--r--vendor/web-sys/src/features/gen_GpuSupportedLimits.rs19
-rw-r--r--vendor/web-sys/src/features/gen_HtmlAllCollection.rs4
-rw-r--r--vendor/web-sys/src/features/gen_HtmlCollection.rs4
-rw-r--r--vendor/web-sys/src/features/gen_HtmlDocument.rs2
-rw-r--r--vendor/web-sys/src/features/gen_HtmlElement.rs14
-rw-r--r--vendor/web-sys/src/features/gen_HtmlFormControlsCollection.rs2
-rw-r--r--vendor/web-sys/src/features/gen_HtmlFormElement.rs4
-rw-r--r--vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs2
-rw-r--r--vendor/web-sys/src/features/gen_HtmlSelectElement.rs4
-rw-r--r--vendor/web-sys/src/features/gen_IdbFileHandle.rs2
-rw-r--r--vendor/web-sys/src/features/gen_ImageTrackList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_IsInputPendingOptions.rs58
-rw-r--r--vendor/web-sys/src/features/gen_Lock.rs42
-rw-r--r--vendor/web-sys/src/features/gen_LockInfo.rs93
-rw-r--r--vendor/web-sys/src/features/gen_LockManager.rs62
-rw-r--r--vendor/web-sys/src/features/gen_LockManagerSnapshot.rs75
-rw-r--r--vendor/web-sys/src/features/gen_LockMode.rs16
-rw-r--r--vendor/web-sys/src/features/gen_LockOptions.rs112
-rw-r--r--vendor/web-sys/src/features/gen_MediaList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_MimeTypeArray.rs4
-rw-r--r--vendor/web-sys/src/features/gen_NamedNodeMap.rs4
-rw-r--r--vendor/web-sys/src/features/gen_Navigator.rs24
-rw-r--r--vendor/web-sys/src/features/gen_NodeList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_Notification.rs71
-rw-r--r--vendor/web-sys/src/features/gen_NotificationAction.rs65
-rw-r--r--vendor/web-sys/src/features/gen_NotificationBehavior.rs113
-rw-r--r--vendor/web-sys/src/features/gen_NotificationOptions.rs91
-rw-r--r--vendor/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs20
-rw-r--r--vendor/web-sys/src/features/gen_PaintRequestList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_Plugin.rs4
-rw-r--r--vendor/web-sys/src/features/gen_PluginArray.rs4
-rw-r--r--vendor/web-sys/src/features/gen_ReadableStreamByobReader.rs10
-rw-r--r--vendor/web-sys/src/features/gen_RtcDataChannel.rs7
-rw-r--r--vendor/web-sys/src/features/gen_RtcRtpTransceiverInit.rs17
-rw-r--r--vendor/web-sys/src/features/gen_Scheduler.rs46
-rw-r--r--vendor/web-sys/src/features/gen_SchedulerPostTaskOptions.rs95
-rw-r--r--vendor/web-sys/src/features/gen_Scheduling.rs45
-rw-r--r--vendor/web-sys/src/features/gen_ServiceWorkerRegistration.rs11
-rw-r--r--vendor/web-sys/src/features/gen_SourceBufferList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SpeechGrammarList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SpeechRecognitionResult.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SpeechRecognitionResultList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_Storage.rs6
-rw-r--r--vendor/web-sys/src/features/gen_StyleSheetList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgLengthList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgNumberList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgPathSegList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgPointList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgStringList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_SvgTransformList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_TaskController.rs54
-rw-r--r--vendor/web-sys/src/features/gen_TaskControllerInit.rs59
-rw-r--r--vendor/web-sys/src/features/gen_TaskPriority.rs17
-rw-r--r--vendor/web-sys/src/features/gen_TaskPriorityChangeEvent.rs46
-rw-r--r--vendor/web-sys/src/features/gen_TaskPriorityChangeEventInit.rs118
-rw-r--r--vendor/web-sys/src/features/gen_TaskSignal.rs77
-rw-r--r--vendor/web-sys/src/features/gen_TaskSignalAnyInit.rs58
-rw-r--r--vendor/web-sys/src/features/gen_TextTrackCueList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_TextTrackList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_TouchList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_VideoTrackList.rs2
-rw-r--r--vendor/web-sys/src/features/gen_ViewTransition.rs63
-rw-r--r--vendor/web-sys/src/features/gen_WgslLanguageFeatures.rs88
-rw-r--r--vendor/web-sys/src/features/gen_Window.rs30
-rw-r--r--vendor/web-sys/src/features/gen_WorkerGlobalScope.rs20
-rw-r--r--vendor/web-sys/src/features/gen_WorkerNavigator.rs12
-rw-r--r--vendor/web-sys/src/features/gen_XrInputSourceArray.rs2
-rw-r--r--vendor/web-sys/src/features/mod.rs234
-rw-r--r--vendor/web-sys/src/lib.rs3
114 files changed, 2813 insertions, 1105 deletions
diff --git a/vendor/web-sys/src/features/gen_AudioContext.rs b/vendor/web-sys/src/features/gen_AudioContext.rs
index 313a03d5f..4ebd6dd11 100644
--- a/vendor/web-sys/src/features/gen_AudioContext.rs
+++ b/vendor/web-sys/src/features/gen_AudioContext.rs
@@ -12,6 +12,39 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
pub type AudioContext;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = sinkId)]
+ #[doc = "Getter for the `sinkId` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn sink_id(this: &AudioContext) -> ::wasm_bindgen::JsValue;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = onsinkchange)]
+ #[doc = "Getter for the `onsinkchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn onsinkchange(this: &AudioContext) -> Option<::js_sys::Function>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , setter , js_class = "AudioContext" , js_name = onsinkchange)]
+ #[doc = "Setter for the `onsinkchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onsinkchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_onsinkchange(this: &AudioContext, value: Option<&::js_sys::Function>);
#[cfg(feature = "AudioDestinationNode")]
# [wasm_bindgen (structural , method , getter , js_class = "AudioContext" , js_name = destination)]
#[doc = "Getter for the `destination` field of this object."]
@@ -128,6 +161,32 @@ extern "C" {
this: &AudioContext,
media_stream: &MediaStream,
) -> Result<MediaStreamAudioSourceNode, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
+ #[doc = "The `setSinkId()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_sink_id_with_str(this: &AudioContext, sink_id: &str) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AudioSinkOptions")]
+ # [wasm_bindgen (method , structural , js_class = "AudioContext" , js_name = setSinkId)]
+ #[doc = "The `setSinkId()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/setSinkId)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioSinkOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_sink_id_with_audio_sink_options(
+ this: &AudioContext,
+ sink_id: &AudioSinkOptions,
+ ) -> ::js_sys::Promise;
# [wasm_bindgen (catch , method , structural , js_class = "AudioContext" , js_name = suspend)]
#[doc = "The `suspend()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_AudioContextLatencyCategory.rs b/vendor/web-sys/src/features/gen_AudioContextLatencyCategory.rs
new file mode 100644
index 000000000..c0842efa9
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_AudioContextLatencyCategory.rs
@@ -0,0 +1,13 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+#[doc = "The `AudioContextLatencyCategory` enum."]
+#[doc = ""]
+#[doc = "*This API requires the following crate features to be activated: `AudioContextLatencyCategory`*"]
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum AudioContextLatencyCategory {
+ Balanced = "balanced",
+ Interactive = "interactive",
+ Playback = "playback",
+}
diff --git a/vendor/web-sys/src/features/gen_AudioContextOptions.rs b/vendor/web-sys/src/features/gen_AudioContextOptions.rs
index 514973d91..56dbb0a4c 100644
--- a/vendor/web-sys/src/features/gen_AudioContextOptions.rs
+++ b/vendor/web-sys/src/features/gen_AudioContextOptions.rs
@@ -20,6 +20,23 @@ impl AudioContextOptions {
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
+ #[doc = "Change the `latencyHint` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
+ pub fn latency_hint(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("latencyHint"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `sampleRate` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
@@ -37,6 +54,24 @@ impl AudioContextOptions {
let _ = r;
self
}
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `sinkId` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn sink_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sinkId"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
}
impl Default for AudioContextOptions {
fn default() -> Self {
diff --git a/vendor/web-sys/src/features/gen_AudioSinkInfo.rs b/vendor/web-sys/src/features/gen_AudioSinkInfo.rs
new file mode 100644
index 000000000..fd539be1d
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_AudioSinkInfo.rs
@@ -0,0 +1,31 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkInfo , typescript_type = "AudioSinkInfo")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `AudioSinkInfo` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioSinkInfo)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type AudioSinkInfo;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AudioSinkType")]
+ # [wasm_bindgen (structural , method , getter , js_class = "AudioSinkInfo" , js_name = type)]
+ #[doc = "Getter for the `type` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioSinkInfo/type)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioSinkInfo`, `AudioSinkType`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn type_(this: &AudioSinkInfo) -> AudioSinkType;
+}
diff --git a/vendor/web-sys/src/features/gen_AudioSinkOptions.rs b/vendor/web-sys/src/features/gen_AudioSinkOptions.rs
new file mode 100644
index 000000000..5e264767d
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_AudioSinkOptions.rs
@@ -0,0 +1,51 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioSinkOptions)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `AudioSinkOptions` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type AudioSinkOptions;
+}
+#[cfg(web_sys_unstable_apis)]
+impl AudioSinkOptions {
+ #[cfg(feature = "AudioSinkType")]
+ #[doc = "Construct a new `AudioSinkOptions`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new(type_: AudioSinkType) -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.type_(type_);
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AudioSinkType")]
+ #[doc = "Change the `type` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioSinkOptions`, `AudioSinkType`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn type_(&mut self, val: AudioSinkType) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_GpuRenderPassTimestampLocation.rs b/vendor/web-sys/src/features/gen_AudioSinkType.rs
index 23e531ba3..5e1abf956 100644
--- a/vendor/web-sys/src/features/gen_GpuRenderPassTimestampLocation.rs
+++ b/vendor/web-sys/src/features/gen_AudioSinkType.rs
@@ -3,14 +3,13 @@
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
-#[doc = "The `GpuRenderPassTimestampLocation` enum."]
+#[doc = "The `AudioSinkType` enum."]
#[doc = ""]
-#[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampLocation`*"]
+#[doc = "*This API requires the following crate features to be activated: `AudioSinkType`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-pub enum GpuRenderPassTimestampLocation {
- Beginning = "beginning",
- End = "end",
+pub enum AudioSinkType {
+ None = "none",
}
diff --git a/vendor/web-sys/src/features/gen_AudioTrackList.rs b/vendor/web-sys/src/features/gen_AudioTrackList.rs
index fa75bfbd3..4a17b463f 100644
--- a/vendor/web-sys/src/features/gen_AudioTrackList.rs
+++ b/vendor/web-sys/src/features/gen_AudioTrackList.rs
@@ -71,7 +71,7 @@ extern "C" {
pub fn get_track_by_id(this: &AudioTrackList, id: &str) -> Option<AudioTrack>;
#[cfg(feature = "AudioTrack")]
#[wasm_bindgen(method, structural, js_class = "AudioTrackList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs b/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
index 335576870..c5878c132 100644
--- a/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
+++ b/vendor/web-sys/src/features/gen_CanvasRenderingContext2d.rs
@@ -1385,6 +1385,26 @@ extern "C" {
e: f64,
f: f64,
) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setTransform)]
+ #[doc = "The `setTransform()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"]
+ pub fn set_transform_with_default_dom_matrix_2d_init(
+ this: &CanvasRenderingContext2d,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "DomMatrix2dInit")]
+ # [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setTransform)]
+ #[doc = "The `setTransform()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomMatrix2dInit`*"]
+ pub fn set_transform_with_dom_matrix_2d_init(
+ this: &CanvasRenderingContext2d,
+ transform: &DomMatrix2dInit,
+ ) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = transform)]
#[doc = "The `transform()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Csp.rs b/vendor/web-sys/src/features/gen_Csp.rs
deleted file mode 100644
index 5fb46ed9c..000000000
--- a/vendor/web-sys/src/features/gen_Csp.rs
+++ /dev/null
@@ -1,402 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSP)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `Csp` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub type Csp;
-}
-impl Csp {
- #[doc = "Construct a new `Csp`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[doc = "Change the `base-uri` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn base_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("base-uri"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `block-all-mixed-content` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn block_all_mixed_content(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("block-all-mixed-content"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `child-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn child_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("child-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `connect-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn connect_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("connect-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `default-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn default_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("default-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `font-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn font_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("font-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `form-action` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn form_action(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("form-action"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `frame-ancestors` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn frame_ancestors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("frame-ancestors"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `frame-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn frame_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("frame-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `img-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn img_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("img-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `manifest-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn manifest_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("manifest-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `media-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn media_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("media-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `object-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn object_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("object-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `referrer` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn referrer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("referrer"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `report-only` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn report_only(&mut self, val: bool) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("report-only"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `report-uri` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn report_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("report-uri"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `require-sri-for` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn require_sri_for(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("require-sri-for"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `sandbox` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn sandbox(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("sandbox"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `script-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn script_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("script-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `style-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn style_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("style-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `upgrade-insecure-requests` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn upgrade_insecure_requests(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("upgrade-insecure-requests"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `worker-src` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Csp`*"]
- pub fn worker_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("worker-src"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for Csp {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_CspPolicies.rs b/vendor/web-sys/src/features/gen_CspPolicies.rs
deleted file mode 100644
index 2ee8221ac..000000000
--- a/vendor/web-sys/src/features/gen_CspPolicies.rs
+++ /dev/null
@@ -1,45 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPPolicies)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `CspPolicies` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"]
- pub type CspPolicies;
-}
-impl CspPolicies {
- #[doc = "Construct a new `CspPolicies`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[doc = "Change the `csp-policies` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"]
- pub fn csp_policies(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("csp-policies"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for CspPolicies {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_CspReport.rs b/vendor/web-sys/src/features/gen_CspReport.rs
deleted file mode 100644
index 77ef67e05..000000000
--- a/vendor/web-sys/src/features/gen_CspReport.rs
+++ /dev/null
@@ -1,46 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReport)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `CspReport` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReport`*"]
- pub type CspReport;
-}
-impl CspReport {
- #[doc = "Construct a new `CspReport`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReport`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[cfg(feature = "CspReportProperties")]
- #[doc = "Change the `csp-report` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReport`, `CspReportProperties`*"]
- pub fn csp_report(&mut self, val: &CspReportProperties) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("csp-report"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for CspReport {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_CspReportProperties.rs b/vendor/web-sys/src/features/gen_CspReportProperties.rs
deleted file mode 100644
index 8b7cb0056..000000000
--- a/vendor/web-sys/src/features/gen_CspReportProperties.rs
+++ /dev/null
@@ -1,181 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = CSPReportProperties)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `CspReportProperties` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub type CspReportProperties;
-}
-impl CspReportProperties {
- #[doc = "Construct a new `CspReportProperties`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[doc = "Change the `blocked-uri` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn blocked_uri(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("blocked-uri"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `column-number` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn column_number(&mut self, val: i32) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("column-number"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `document-uri` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn document_uri(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("document-uri"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `line-number` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn line_number(&mut self, val: i32) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("line-number"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `original-policy` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn original_policy(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("original-policy"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `referrer` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn referrer(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("referrer"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `script-sample` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn script_sample(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("script-sample"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `source-file` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn source_file(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("source-file"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `violated-directive` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"]
- pub fn violated_directive(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("violated-directive"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for CspReportProperties {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_CssRuleList.rs b/vendor/web-sys/src/features/gen_CssRuleList.rs
index 30c75ca7d..9482667ef 100644
--- a/vendor/web-sys/src/features/gen_CssRuleList.rs
+++ b/vendor/web-sys/src/features/gen_CssRuleList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &CssRuleList, index: u32) -> Option<CssRule>;
#[cfg(feature = "CssRule")]
#[wasm_bindgen(method, structural, js_class = "CSSRuleList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_CssStyleDeclaration.rs b/vendor/web-sys/src/features/gen_CssStyleDeclaration.rs
index a951f065a..6e4f9b00e 100644
--- a/vendor/web-sys/src/features/gen_CssStyleDeclaration.rs
+++ b/vendor/web-sys/src/features/gen_CssStyleDeclaration.rs
@@ -96,7 +96,7 @@ extern "C" {
priority: &str,
) -> Result<(), JsValue>;
#[wasm_bindgen(method, structural, js_class = "CSSStyleDeclaration", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_CssStyleSheet.rs b/vendor/web-sys/src/features/gen_CssStyleSheet.rs
index b8a1044f5..833c2fd65 100644
--- a/vendor/web-sys/src/features/gen_CssStyleSheet.rs
+++ b/vendor/web-sys/src/features/gen_CssStyleSheet.rs
@@ -28,6 +28,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `CssRuleList`, `CssStyleSheet`*"]
pub fn css_rules(this: &CssStyleSheet) -> Result<CssRuleList, JsValue>;
+ #[wasm_bindgen(catch, constructor, js_class = "CSSStyleSheet")]
+ #[doc = "The `new CssStyleSheet(..)` constructor, creating a new instance of `CssStyleSheet`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/CSSStyleSheet)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn new() -> Result<CssStyleSheet, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = deleteRule)]
#[doc = "The `deleteRule()` method."]
#[doc = ""]
@@ -53,4 +60,18 @@ extern "C" {
rule: &str,
index: u32,
) -> Result<u32, JsValue>;
+ # [wasm_bindgen (method , structural , js_class = "CSSStyleSheet" , js_name = replace)]
+ #[doc = "The `replace()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replace)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn replace(this: &CssStyleSheet, text: &str) -> ::js_sys::Promise;
+ # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleSheet" , js_name = replaceSync)]
+ #[doc = "The `replaceSync()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/replaceSync)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"]
+ pub fn replace_sync(this: &CssStyleSheet, text: &str) -> Result<(), JsValue>;
}
diff --git a/vendor/web-sys/src/features/gen_DataTransferItemList.rs b/vendor/web-sys/src/features/gen_DataTransferItemList.rs
index 28710afe2..efe6ce96c 100644
--- a/vendor/web-sys/src/features/gen_DataTransferItemList.rs
+++ b/vendor/web-sys/src/features/gen_DataTransferItemList.rs
@@ -58,7 +58,7 @@ extern "C" {
pub fn remove(this: &DataTransferItemList, index: u32) -> Result<(), JsValue>;
#[cfg(feature = "DataTransferItem")]
#[wasm_bindgen(method, structural, js_class = "DataTransferItemList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Document.rs b/vendor/web-sys/src/features/gen_Document.rs
index d2ad9eb37..b910b43c3 100644
--- a/vendor/web-sys/src/features/gen_Document.rs
+++ b/vendor/web-sys/src/features/gen_Document.rs
@@ -2155,6 +2155,33 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Document`*"]
pub fn release_capture(this: &Document);
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "ViewTransition")]
+ # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)]
+ #[doc = "The `startViewTransition()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn start_view_transition(this: &Document) -> Result<ViewTransition, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "ViewTransition")]
+ # [wasm_bindgen (catch , method , structural , js_class = "Document" , js_name = startViewTransition)]
+ #[doc = "The `startViewTransition()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Document`, `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn start_view_transition_with_update_callback(
+ this: &Document,
+ update_callback: Option<&::js_sys::Function>,
+ ) -> Result<ViewTransition, JsValue>;
#[cfg(feature = "Element")]
# [wasm_bindgen (method , structural , js_class = "Document" , js_name = elementFromPoint)]
#[doc = "The `elementFromPoint()` method."]
diff --git a/vendor/web-sys/src/features/gen_DomMatrix2dInit.rs b/vendor/web-sys/src/features/gen_DomMatrix2dInit.rs
new file mode 100644
index 000000000..f91b401ce
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_DomMatrix2dInit.rs
@@ -0,0 +1,184 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrix2DInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `DomMatrix2dInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub type DomMatrix2dInit;
+}
+impl DomMatrix2dInit {
+ #[doc = "Construct a new `DomMatrix2dInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[doc = "Change the `a` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn a(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("a"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `b` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn b(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("b"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `c` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn c(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("c"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `d` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn d(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `e` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn e(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("e"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `f` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn f(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("f"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m11` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m11(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m11"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m12` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m12(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m12"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m21` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m21(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m21"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m22` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m22(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m22"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m41` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m41(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m41"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m42` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`*"]
+ pub fn m42(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m42"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+impl Default for DomMatrix2dInit {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_DomMatrixInit.rs b/vendor/web-sys/src/features/gen_DomMatrixInit.rs
new file mode 100644
index 000000000..573a0c4d6
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_DomMatrixInit.rs
@@ -0,0 +1,327 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMMatrixInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `DomMatrixInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub type DomMatrixInit;
+}
+impl DomMatrixInit {
+ #[doc = "Construct a new `DomMatrixInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[doc = "Change the `a` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn a(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("a"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `b` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn b(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("b"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `c` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn c(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("c"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `d` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn d(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `e` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn e(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("e"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `f` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn f(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("f"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m11` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m11(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m11"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m12` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m12(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m12"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m21` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m21(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m21"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m22` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m22(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m22"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m41` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m41(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m41"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m42` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m42(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m42"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `is2D` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn is_2d(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("is2D"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m13` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m13(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m13"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m14` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m14(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m14"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m23` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m23(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m23"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m24` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m24(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m24"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m31` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m31(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m31"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m32` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m32(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m32"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m33` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m33(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m33"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m34` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m34(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m34"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m43` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m43(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m43"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `m44` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrixInit`*"]
+ pub fn m44(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("m44"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+impl Default for DomMatrixInit {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_DomRectList.rs b/vendor/web-sys/src/features/gen_DomRectList.rs
index ebb1df27d..9e33e98cc 100644
--- a/vendor/web-sys/src/features/gen_DomRectList.rs
+++ b/vendor/web-sys/src/features/gen_DomRectList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &DomRectList, index: u32) -> Option<DomRect>;
#[cfg(feature = "DomRect")]
#[wasm_bindgen(method, structural, js_class = "DOMRectList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_DomStringList.rs b/vendor/web-sys/src/features/gen_DomStringList.rs
index 9b32ed72e..c91f55774 100644
--- a/vendor/web-sys/src/features/gen_DomStringList.rs
+++ b/vendor/web-sys/src/features/gen_DomStringList.rs
@@ -34,7 +34,7 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
pub fn item(this: &DomStringList, index: u32) -> Option<String>;
#[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_DomStringMap.rs b/vendor/web-sys/src/features/gen_DomStringMap.rs
index 533c2245a..e7e1c3ae5 100644
--- a/vendor/web-sys/src/features/gen_DomStringMap.rs
+++ b/vendor/web-sys/src/features/gen_DomStringMap.rs
@@ -13,21 +13,21 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
pub type DomStringMap;
#[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
pub fn get(this: &DomStringMap, name: &str) -> Option<String>;
#[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)]
- #[doc = "Indexing setter."]
+ #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
pub fn set(this: &DomStringMap, name: &str, value: &str) -> Result<(), JsValue>;
#[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_deleter)]
- #[doc = "Indexing deleter."]
+ #[doc = "Indexing deleter. As in the literal Javascript `delete this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_DomTokenList.rs b/vendor/web-sys/src/features/gen_DomTokenList.rs
index 6277b5c40..d88b957cd 100644
--- a/vendor/web-sys/src/features/gen_DomTokenList.rs
+++ b/vendor/web-sys/src/features/gen_DomTokenList.rs
@@ -276,7 +276,7 @@ extern "C" {
force: bool,
) -> Result<bool, JsValue>;
#[wasm_bindgen(method, structural, js_class = "DOMTokenList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_FileList.rs b/vendor/web-sys/src/features/gen_FileList.rs
index 6e59e87e0..6eabb324b 100644
--- a/vendor/web-sys/src/features/gen_FileList.rs
+++ b/vendor/web-sys/src/features/gen_FileList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &FileList, index: u32) -> Option<File>;
#[cfg(feature = "File")]
#[wasm_bindgen(method, structural, js_class = "FileList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs b/vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs
index 30d81b46b..8b293264f 100644
--- a/vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs
+++ b/vendor/web-sys/src/features/gen_FileSystemSyncAccessHandle.rs
@@ -163,7 +163,7 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn write_with_u8_array(
this: &FileSystemSyncAccessHandle,
- buffer: &mut [u8],
+ buffer: &[u8],
) -> Result<f64, JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "FileSystemReadWriteOptions")]
@@ -194,7 +194,7 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn write_with_u8_array_and_options(
this: &FileSystemSyncAccessHandle,
- buffer: &mut [u8],
+ buffer: &[u8],
options: &FileSystemReadWriteOptions,
) -> Result<f64, JsValue>;
}
diff --git a/vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs b/vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs
index c36982283..56f113261 100644
--- a/vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs
+++ b/vendor/web-sys/src/features/gen_FileSystemWritableFileStream.rs
@@ -98,7 +98,7 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn write_with_u8_array(
this: &FileSystemWritableFileStream,
- data: &mut [u8],
+ data: &[u8],
) -> Result<::js_sys::Promise, JsValue>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "Blob")]
diff --git a/vendor/web-sys/src/features/gen_GetNotificationOptions.rs b/vendor/web-sys/src/features/gen_GetNotificationOptions.rs
deleted file mode 100644
index ac6589dd6..000000000
--- a/vendor/web-sys/src/features/gen_GetNotificationOptions.rs
+++ /dev/null
@@ -1,41 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GetNotificationOptions)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `GetNotificationOptions` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"]
- pub type GetNotificationOptions;
-}
-impl GetNotificationOptions {
- #[doc = "Construct a new `GetNotificationOptions`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[doc = "Change the `tag` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"]
- pub fn tag(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tag"), &JsValue::from(val));
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for GetNotificationOptions {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_Gpu.rs b/vendor/web-sys/src/features/gen_Gpu.rs
index 1001f2aa8..1fe433a1a 100644
--- a/vendor/web-sys/src/features/gen_Gpu.rs
+++ b/vendor/web-sys/src/features/gen_Gpu.rs
@@ -17,6 +17,18 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type Gpu;
#[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "WgslLanguageFeatures")]
+ # [wasm_bindgen (structural , method , getter , js_class = "GPU" , js_name = wgslLanguageFeatures)]
+ #[doc = "Getter for the `wgslLanguageFeatures` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/wgslLanguageFeatures)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Gpu`, `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn wgsl_language_features(this: &Gpu) -> WgslLanguageFeatures;
+ #[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuTextureFormat")]
# [wasm_bindgen (method , structural , js_class = "GPU" , js_name = getPreferredCanvasFormat)]
#[doc = "The `getPreferredCanvasFormat()` method."]
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs b/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
index 475c0acbf..18b414291 100644
--- a/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
+++ b/vendor/web-sys/src/features/gen_GpuComputePassDescriptor.rs
@@ -46,13 +46,14 @@ impl GpuComputePassDescriptor {
self
}
#[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuComputePassTimestampWrites")]
#[doc = "Change the `timestampWrites` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`, `GpuComputePassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn timestamp_writes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ pub fn timestamp_writes(&mut self, val: &GpuComputePassTimestampWrites) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs b/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs
index 631411690..527442433 100644
--- a/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs
+++ b/vendor/web-sys/src/features/gen_GpuComputePassEncoder.rs
@@ -146,7 +146,11 @@ extern "C" {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn set_bind_group(this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup);
+ pub fn set_bind_group(
+ this: &GpuComputePassEncoder,
+ index: u32,
+ bind_group: Option<&GpuBindGroup>,
+ );
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBindGroup")]
# [wasm_bindgen (method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup)]
@@ -161,7 +165,7 @@ extern "C" {
pub fn set_bind_group_with_u32_sequence(
this: &GpuComputePassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets: &::wasm_bindgen::JsValue,
);
#[cfg(web_sys_unstable_apis)]
@@ -178,7 +182,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
this: &GpuComputePassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: u32,
dynamic_offsets_data_length: u32,
@@ -197,7 +201,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
this: &GpuComputePassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: f64,
dynamic_offsets_data_length: u32,
diff --git a/vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrite.rs b/vendor/web-sys/src/features/gen_GpuComputePassTimestampWrites.rs
index f1aa587e2..52a43c7e0 100644
--- a/vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrite.rs
+++ b/vendor/web-sys/src/features/gen_GpuComputePassTimestampWrites.rs
@@ -5,50 +5,43 @@ use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassTimestampWrite)]
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassTimestampWrites)]
#[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `GpuRenderPassTimestampWrite` dictionary."]
+ #[doc = "The `GpuComputePassTimestampWrites` dictionary."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub type GpuRenderPassTimestampWrite;
+ pub type GpuComputePassTimestampWrites;
}
#[cfg(web_sys_unstable_apis)]
-impl GpuRenderPassTimestampWrite {
- #[cfg(all(feature = "GpuQuerySet", feature = "GpuRenderPassTimestampLocation",))]
- #[doc = "Construct a new `GpuRenderPassTimestampWrite`."]
+impl GpuComputePassTimestampWrites {
+ #[cfg(feature = "GpuQuerySet")]
+ #[doc = "Construct a new `GpuComputePassTimestampWrites`."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampLocation`, `GpuRenderPassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn new(
- location: GpuRenderPassTimestampLocation,
- query_index: u32,
- query_set: &GpuQuerySet,
- ) -> Self {
+ pub fn new(query_set: &GpuQuerySet) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret.location(location);
- ret.query_index(query_index);
ret.query_set(query_set);
ret
}
#[cfg(web_sys_unstable_apis)]
- #[cfg(feature = "GpuRenderPassTimestampLocation")]
- #[doc = "Change the `location` field of this object."]
+ #[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampLocation`, `GpuRenderPassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn location(&mut self, val: GpuRenderPassTimestampLocation) -> &mut Self {
+ pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
- &JsValue::from("location"),
+ &JsValue::from("beginningOfPassWriteIndex"),
&JsValue::from(val),
);
debug_assert!(
@@ -59,17 +52,17 @@ impl GpuRenderPassTimestampWrite {
self
}
#[cfg(web_sys_unstable_apis)]
- #[doc = "Change the `queryIndex` field of this object."]
+ #[doc = "Change the `endOfPassWriteIndex` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn query_index(&mut self, val: u32) -> &mut Self {
+ pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
- &JsValue::from("queryIndex"),
+ &JsValue::from("endOfPassWriteIndex"),
&JsValue::from(val),
);
debug_assert!(
@@ -83,7 +76,7 @@ impl GpuRenderPassTimestampWrite {
#[cfg(feature = "GpuQuerySet")]
#[doc = "Change the `querySet` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrites`, `GpuQuerySet`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/vendor/web-sys/src/features/gen_GpuDepthStencilState.rs b/vendor/web-sys/src/features/gen_GpuDepthStencilState.rs
index 8869e1ce3..194548647 100644
--- a/vendor/web-sys/src/features/gen_GpuDepthStencilState.rs
+++ b/vendor/web-sys/src/features/gen_GpuDepthStencilState.rs
@@ -17,16 +17,22 @@ extern "C" {
}
#[cfg(web_sys_unstable_apis)]
impl GpuDepthStencilState {
- #[cfg(feature = "GpuTextureFormat")]
+ #[cfg(all(feature = "GpuCompareFunction", feature = "GpuTextureFormat",))]
#[doc = "Construct a new `GpuDepthStencilState`."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilState`, `GpuTextureFormat`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilState`, `GpuTextureFormat`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn new(format: GpuTextureFormat) -> Self {
+ pub fn new(
+ depth_compare: GpuCompareFunction,
+ depth_write_enabled: bool,
+ format: GpuTextureFormat,
+ ) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.depth_compare(depth_compare);
+ ret.depth_write_enabled(depth_write_enabled);
ret.format(format);
ret
}
diff --git a/vendor/web-sys/src/features/gen_GpuDeviceLostInfo.rs b/vendor/web-sys/src/features/gen_GpuDeviceLostInfo.rs
index 00d88cd05..2e5e15a85 100644
--- a/vendor/web-sys/src/features/gen_GpuDeviceLostInfo.rs
+++ b/vendor/web-sys/src/features/gen_GpuDeviceLostInfo.rs
@@ -17,16 +17,17 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type GpuDeviceLostInfo;
#[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuDeviceLostReason")]
# [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = reason)]
#[doc = "Getter for the `reason` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/reason)"]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`, `GpuDeviceLostReason`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn reason(this: &GpuDeviceLostInfo) -> ::wasm_bindgen::JsValue;
+ pub fn reason(this: &GpuDeviceLostInfo) -> GpuDeviceLostReason;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message)]
#[doc = "Getter for the `message` field of this object."]
diff --git a/vendor/web-sys/src/features/gen_GpuDeviceLostReason.rs b/vendor/web-sys/src/features/gen_GpuDeviceLostReason.rs
index 3a8f6d89c..554f14733 100644
--- a/vendor/web-sys/src/features/gen_GpuDeviceLostReason.rs
+++ b/vendor/web-sys/src/features/gen_GpuDeviceLostReason.rs
@@ -11,5 +11,6 @@ use wasm_bindgen::prelude::*;
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum GpuDeviceLostReason {
+ Unknown = "unknown",
Destroyed = "destroyed",
}
diff --git a/vendor/web-sys/src/features/gen_GpuExternalTexture.rs b/vendor/web-sys/src/features/gen_GpuExternalTexture.rs
index f3fb9ac19..5aea010a4 100644
--- a/vendor/web-sys/src/features/gen_GpuExternalTexture.rs
+++ b/vendor/web-sys/src/features/gen_GpuExternalTexture.rs
@@ -17,17 +17,6 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub type GpuExternalTexture;
#[cfg(web_sys_unstable_apis)]
- # [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , js_name = expired)]
- #[doc = "Getter for the `expired` field of this object."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUExternalTexture/expired)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuExternalTexture`*"]
- #[doc = ""]
- #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
- #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn expired(this: &GpuExternalTexture) -> bool;
- #[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "GPUExternalTexture" , js_name = label)]
#[doc = "Getter for the `label` field of this object."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs b/vendor/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs
index f6a11bc00..34ffa8f91 100644
--- a/vendor/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs
+++ b/vendor/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs
@@ -17,14 +17,13 @@ extern "C" {
}
#[cfg(web_sys_unstable_apis)]
impl GpuExternalTextureDescriptor {
- #[cfg(feature = "HtmlVideoElement")]
#[doc = "Construct a new `GpuExternalTextureDescriptor`."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`, `HtmlVideoElement`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn new(source: &HtmlVideoElement) -> Self {
+ pub fn new(source: &::js_sys::Object) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret.source(source);
@@ -48,14 +47,13 @@ impl GpuExternalTextureDescriptor {
self
}
#[cfg(web_sys_unstable_apis)]
- #[cfg(feature = "HtmlVideoElement")]
#[doc = "Change the `source` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`, `HtmlVideoElement`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuExternalTextureDescriptor`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn source(&mut self, val: &HtmlVideoElement) -> &mut Self {
+ pub fn source(&mut self, val: &::js_sys::Object) -> &mut Self {
use wasm_bindgen::JsValue;
let r =
::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val));
diff --git a/vendor/web-sys/src/features/gen_GpuFeatureName.rs b/vendor/web-sys/src/features/gen_GpuFeatureName.rs
index 4bb8a433b..223d0d3cc 100644
--- a/vendor/web-sys/src/features/gen_GpuFeatureName.rs
+++ b/vendor/web-sys/src/features/gen_GpuFeatureName.rs
@@ -19,6 +19,7 @@ pub enum GpuFeatureName {
TimestampQuery = "timestamp-query",
IndirectFirstInstance = "indirect-first-instance",
ShaderF16 = "shader-f16",
- Bgra8unormStorage = "bgra8unorm-storage",
Rg11b10ufloatRenderable = "rg11b10ufloat-renderable",
+ Bgra8unormStorage = "bgra8unorm-storage",
+ Float32Filterable = "float32-filterable",
}
diff --git a/vendor/web-sys/src/features/gen_GpuPipelineError.rs b/vendor/web-sys/src/features/gen_GpuPipelineError.rs
new file mode 100644
index 000000000..cfd85856d
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_GpuPipelineError.rs
@@ -0,0 +1,43 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = DomException , extends = :: js_sys :: Object , js_name = GPUPipelineError , typescript_type = "GPUPipelineError")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `GpuPipelineError` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type GpuPipelineError;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuPipelineErrorReason")]
+ # [wasm_bindgen (structural , method , getter , js_class = "GPUPipelineError" , js_name = reason)]
+ #[doc = "Getter for the `reason` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/reason)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorReason`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn reason(this: &GpuPipelineError) -> GpuPipelineErrorReason;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuPipelineErrorInit")]
+ #[wasm_bindgen(catch, constructor, js_class = "GPUPipelineError")]
+ #[doc = "The `new GpuPipelineError(..)` constructor, creating a new instance of `GpuPipelineError`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineError/GPUPipelineError)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineError`, `GpuPipelineErrorInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new(message: &str, options: &GpuPipelineErrorInit) -> Result<GpuPipelineError, JsValue>;
+}
diff --git a/vendor/web-sys/src/features/gen_GpuPipelineErrorInit.rs b/vendor/web-sys/src/features/gen_GpuPipelineErrorInit.rs
new file mode 100644
index 000000000..d56b6c4b4
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_GpuPipelineErrorInit.rs
@@ -0,0 +1,52 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUPipelineErrorInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `GpuPipelineErrorInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type GpuPipelineErrorInit;
+}
+#[cfg(web_sys_unstable_apis)]
+impl GpuPipelineErrorInit {
+ #[cfg(feature = "GpuPipelineErrorReason")]
+ #[doc = "Construct a new `GpuPipelineErrorInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`, `GpuPipelineErrorReason`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new(reason: GpuPipelineErrorReason) -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.reason(reason);
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuPipelineErrorReason")]
+ #[doc = "Change the `reason` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorInit`, `GpuPipelineErrorReason`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn reason(&mut self, val: GpuPipelineErrorReason) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassTimestampLocation.rs b/vendor/web-sys/src/features/gen_GpuPipelineErrorReason.rs
index 488991565..3d2fd0bf1 100644
--- a/vendor/web-sys/src/features/gen_GpuComputePassTimestampLocation.rs
+++ b/vendor/web-sys/src/features/gen_GpuPipelineErrorReason.rs
@@ -3,14 +3,14 @@
use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
-#[doc = "The `GpuComputePassTimestampLocation` enum."]
+#[doc = "The `GpuPipelineErrorReason` enum."]
#[doc = ""]
-#[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampLocation`*"]
+#[doc = "*This API requires the following crate features to be activated: `GpuPipelineErrorReason`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-pub enum GpuComputePassTimestampLocation {
- Beginning = "beginning",
- End = "end",
+pub enum GpuPipelineErrorReason {
+ Validation = "validation",
+ Internal = "internal",
}
diff --git a/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs b/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs
index 7c3728cc3..9aaecf3d4 100644
--- a/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs
+++ b/vendor/web-sys/src/features/gen_GpuRenderBundleEncoder.rs
@@ -76,7 +76,11 @@ extern "C" {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup);
+ pub fn set_bind_group(
+ this: &GpuRenderBundleEncoder,
+ index: u32,
+ bind_group: Option<&GpuBindGroup>,
+ );
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBindGroup")]
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup)]
@@ -91,7 +95,7 @@ extern "C" {
pub fn set_bind_group_with_u32_sequence(
this: &GpuRenderBundleEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets: &::wasm_bindgen::JsValue,
);
#[cfg(web_sys_unstable_apis)]
@@ -108,7 +112,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
this: &GpuRenderBundleEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: u32,
dynamic_offsets_data_length: u32,
@@ -127,7 +131,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
this: &GpuRenderBundleEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: f64,
dynamic_offsets_data_length: u32,
@@ -510,7 +514,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer);
+ pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: Option<&GpuBuffer>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBuffer")]
# [wasm_bindgen (method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer)]
@@ -525,7 +529,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
);
#[cfg(web_sys_unstable_apis)]
@@ -542,7 +546,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
);
#[cfg(web_sys_unstable_apis)]
@@ -559,7 +563,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32_and_u32(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
size: u32,
);
@@ -577,7 +581,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64_and_u32(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
size: u32,
);
@@ -595,7 +599,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32_and_f64(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
size: f64,
);
@@ -613,7 +617,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64_and_f64(
this: &GpuRenderBundleEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
size: f64,
);
diff --git a/vendor/web-sys/src/features/gen_GpuRenderPassDescriptor.rs b/vendor/web-sys/src/features/gen_GpuRenderPassDescriptor.rs
index d7ef54d52..260f7fdaf 100644
--- a/vendor/web-sys/src/features/gen_GpuRenderPassDescriptor.rs
+++ b/vendor/web-sys/src/features/gen_GpuRenderPassDescriptor.rs
@@ -136,13 +136,14 @@ impl GpuRenderPassDescriptor {
self
}
#[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "GpuRenderPassTimestampWrites")]
#[doc = "Change the `timestampWrites` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`, `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn timestamp_writes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ pub fn timestamp_writes(&mut self, val: &GpuRenderPassTimestampWrites) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
diff --git a/vendor/web-sys/src/features/gen_GpuRenderPassEncoder.rs b/vendor/web-sys/src/features/gen_GpuRenderPassEncoder.rs
index 57ab7b212..a708d6978 100644
--- a/vendor/web-sys/src/features/gen_GpuRenderPassEncoder.rs
+++ b/vendor/web-sys/src/features/gen_GpuRenderPassEncoder.rs
@@ -163,7 +163,11 @@ extern "C" {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn set_bind_group(this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup);
+ pub fn set_bind_group(
+ this: &GpuRenderPassEncoder,
+ index: u32,
+ bind_group: Option<&GpuBindGroup>,
+ );
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBindGroup")]
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
@@ -178,7 +182,7 @@ extern "C" {
pub fn set_bind_group_with_u32_sequence(
this: &GpuRenderPassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets: &::wasm_bindgen::JsValue,
);
#[cfg(web_sys_unstable_apis)]
@@ -195,7 +199,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
this: &GpuRenderPassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: u32,
dynamic_offsets_data_length: u32,
@@ -214,7 +218,7 @@ extern "C" {
pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
this: &GpuRenderPassEncoder,
index: u32,
- bind_group: &GpuBindGroup,
+ bind_group: Option<&GpuBindGroup>,
dynamic_offsets_data: &[u32],
dynamic_offsets_data_start: f64,
dynamic_offsets_data_length: u32,
@@ -597,7 +601,7 @@ extern "C" {
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer);
+ pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "GpuBuffer")]
# [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
@@ -612,7 +616,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
);
#[cfg(web_sys_unstable_apis)]
@@ -629,7 +633,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
);
#[cfg(web_sys_unstable_apis)]
@@ -646,7 +650,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32_and_u32(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
size: u32,
);
@@ -664,7 +668,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64_and_u32(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
size: u32,
);
@@ -682,7 +686,7 @@ extern "C" {
pub fn set_vertex_buffer_with_u32_and_f64(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: u32,
size: f64,
);
@@ -700,7 +704,7 @@ extern "C" {
pub fn set_vertex_buffer_with_f64_and_f64(
this: &GpuRenderPassEncoder,
slot: u32,
- buffer: &GpuBuffer,
+ buffer: Option<&GpuBuffer>,
offset: f64,
size: f64,
);
diff --git a/vendor/web-sys/src/features/gen_GpuComputePassTimestampWrite.rs b/vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrites.rs
index 189b759ce..4d72aa93b 100644
--- a/vendor/web-sys/src/features/gen_GpuComputePassTimestampWrite.rs
+++ b/vendor/web-sys/src/features/gen_GpuRenderPassTimestampWrites.rs
@@ -5,50 +5,43 @@ use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUComputePassTimestampWrite)]
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassTimestampWrites)]
#[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `GpuComputePassTimestampWrite` dictionary."]
+ #[doc = "The `GpuRenderPassTimestampWrites` dictionary."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub type GpuComputePassTimestampWrite;
+ pub type GpuRenderPassTimestampWrites;
}
#[cfg(web_sys_unstable_apis)]
-impl GpuComputePassTimestampWrite {
- #[cfg(all(feature = "GpuComputePassTimestampLocation", feature = "GpuQuerySet",))]
- #[doc = "Construct a new `GpuComputePassTimestampWrite`."]
+impl GpuRenderPassTimestampWrites {
+ #[cfg(feature = "GpuQuerySet")]
+ #[doc = "Construct a new `GpuRenderPassTimestampWrites`."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampLocation`, `GpuComputePassTimestampWrite`, `GpuQuerySet`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn new(
- location: GpuComputePassTimestampLocation,
- query_index: u32,
- query_set: &GpuQuerySet,
- ) -> Self {
+ pub fn new(query_set: &GpuQuerySet) -> Self {
#[allow(unused_mut)]
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret.location(location);
- ret.query_index(query_index);
ret.query_set(query_set);
ret
}
#[cfg(web_sys_unstable_apis)]
- #[cfg(feature = "GpuComputePassTimestampLocation")]
- #[doc = "Change the `location` field of this object."]
+ #[doc = "Change the `beginningOfPassWriteIndex` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampLocation`, `GpuComputePassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn location(&mut self, val: GpuComputePassTimestampLocation) -> &mut Self {
+ pub fn beginning_of_pass_write_index(&mut self, val: u32) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
- &JsValue::from("location"),
+ &JsValue::from("beginningOfPassWriteIndex"),
&JsValue::from(val),
);
debug_assert!(
@@ -59,17 +52,17 @@ impl GpuComputePassTimestampWrite {
self
}
#[cfg(web_sys_unstable_apis)]
- #[doc = "Change the `queryIndex` field of this object."]
+ #[doc = "Change the `endOfPassWriteIndex` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrite`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn query_index(&mut self, val: u32) -> &mut Self {
+ pub fn end_of_pass_write_index(&mut self, val: u32) -> &mut Self {
use wasm_bindgen::JsValue;
let r = ::js_sys::Reflect::set(
self.as_ref(),
- &JsValue::from("queryIndex"),
+ &JsValue::from("endOfPassWriteIndex"),
&JsValue::from(val),
);
debug_assert!(
@@ -83,7 +76,7 @@ impl GpuComputePassTimestampWrite {
#[cfg(feature = "GpuQuerySet")]
#[doc = "Change the `querySet` field of this object."]
#[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GpuComputePassTimestampWrite`, `GpuQuerySet`*"]
+ #[doc = "*This API requires the following crate features to be activated: `GpuQuerySet`, `GpuRenderPassTimestampWrites`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
diff --git a/vendor/web-sys/src/features/gen_GpuShaderModule.rs b/vendor/web-sys/src/features/gen_GpuShaderModule.rs
index 082c3af82..8bb9cab8c 100644
--- a/vendor/web-sys/src/features/gen_GpuShaderModule.rs
+++ b/vendor/web-sys/src/features/gen_GpuShaderModule.rs
@@ -39,14 +39,14 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_label(this: &GpuShaderModule, value: &str);
#[cfg(web_sys_unstable_apis)]
- # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = compilationInfo)]
- #[doc = "The `compilationInfo()` method."]
+ # [wasm_bindgen (method , structural , js_class = "GPUShaderModule" , js_name = getCompilationInfo)]
+ #[doc = "The `getCompilationInfo()` method."]
#[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/compilationInfo)"]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/getCompilationInfo)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise;
+ pub fn get_compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise;
}
diff --git a/vendor/web-sys/src/features/gen_GpuSupportedLimits.rs b/vendor/web-sys/src/features/gen_GpuSupportedLimits.rs
index 4abf9d913..be5a6e02c 100644
--- a/vendor/web-sys/src/features/gen_GpuSupportedLimits.rs
+++ b/vendor/web-sys/src/features/gen_GpuSupportedLimits.rs
@@ -72,6 +72,17 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn max_bind_groups(this: &GpuSupportedLimits) -> u32;
#[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindGroupsPlusVertexBuffers)]
+ #[doc = "Getter for the `maxBindGroupsPlusVertexBuffers` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxBindGroupsPlusVertexBuffers)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn max_bind_groups_plus_vertex_buffers(this: &GpuSupportedLimits) -> u32;
+ #[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxBindingsPerBindGroup)]
#[doc = "Getter for the `maxBindingsPerBindGroup` field of this object."]
#[doc = ""]
@@ -281,16 +292,16 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn max_color_attachments(this: &GpuSupportedLimits) -> u32;
#[cfg(web_sys_unstable_apis)]
- # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachmentBytesPerPixel)]
- #[doc = "Getter for the `maxColorAttachmentBytesPerPixel` field of this object."]
+ # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxColorAttachmentBytesPerSample)]
+ #[doc = "Getter for the `maxColorAttachmentBytesPerSample` field of this object."]
#[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachmentBytesPerPixel)"]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedLimits/maxColorAttachmentBytesPerSample)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `GpuSupportedLimits`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
- pub fn max_color_attachment_bytes_per_pixel(this: &GpuSupportedLimits) -> u32;
+ pub fn max_color_attachment_bytes_per_sample(this: &GpuSupportedLimits) -> u32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedLimits" , js_name = maxComputeWorkgroupStorageSize)]
#[doc = "Getter for the `maxComputeWorkgroupStorageSize` field of this object."]
diff --git a/vendor/web-sys/src/features/gen_HtmlAllCollection.rs b/vendor/web-sys/src/features/gen_HtmlAllCollection.rs
index 264f7ee5a..db390569c 100644
--- a/vendor/web-sys/src/features/gen_HtmlAllCollection.rs
+++ b/vendor/web-sys/src/features/gen_HtmlAllCollection.rs
@@ -43,14 +43,14 @@ extern "C" {
pub fn named_item(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>;
#[cfg(feature = "Node")]
#[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"]
pub fn get_with_index(this: &HtmlAllCollection, index: u32) -> Option<Node>;
#[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlCollection.rs b/vendor/web-sys/src/features/gen_HtmlCollection.rs
index 63589be0c..d52876528 100644
--- a/vendor/web-sys/src/features/gen_HtmlCollection.rs
+++ b/vendor/web-sys/src/features/gen_HtmlCollection.rs
@@ -37,7 +37,7 @@ extern "C" {
pub fn named_item(this: &HtmlCollection, name: &str) -> Option<Element>;
#[cfg(feature = "Element")]
#[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -45,7 +45,7 @@ extern "C" {
pub fn get_with_index(this: &HtmlCollection, index: u32) -> Option<Element>;
#[cfg(feature = "Element")]
#[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlDocument.rs b/vendor/web-sys/src/features/gen_HtmlDocument.rs
index 5dce0e056..8d16141c5 100644
--- a/vendor/web-sys/src/features/gen_HtmlDocument.rs
+++ b/vendor/web-sys/src/features/gen_HtmlDocument.rs
@@ -474,7 +474,7 @@ extern "C" {
text_7: &str,
) -> Result<(), JsValue>;
#[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlElement.rs b/vendor/web-sys/src/features/gen_HtmlElement.rs
index 91b027780..e32594002 100644
--- a/vendor/web-sys/src/features/gen_HtmlElement.rs
+++ b/vendor/web-sys/src/features/gen_HtmlElement.rs
@@ -118,6 +118,20 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
pub fn set_hidden(this: &HtmlElement, value: bool);
+ # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = inert)]
+ #[doc = "Getter for the `inert` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
+ pub fn inert(this: &HtmlElement) -> bool;
+ # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = inert)]
+ #[doc = "Setter for the `inert` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"]
+ pub fn set_inert(this: &HtmlElement, value: bool);
# [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex)]
#[doc = "Getter for the `tabIndex` field of this object."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlFormControlsCollection.rs b/vendor/web-sys/src/features/gen_HtmlFormControlsCollection.rs
index 1f5c8cfb3..2f488ddfe 100644
--- a/vendor/web-sys/src/features/gen_HtmlFormControlsCollection.rs
+++ b/vendor/web-sys/src/features/gen_HtmlFormControlsCollection.rs
@@ -25,7 +25,7 @@ extern "C" {
js_class = "HTMLFormControlsCollection",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlFormElement.rs b/vendor/web-sys/src/features/gen_HtmlFormElement.rs
index d9381ab95..aad396637 100644
--- a/vendor/web-sys/src/features/gen_HtmlFormElement.rs
+++ b/vendor/web-sys/src/features/gen_HtmlFormElement.rs
@@ -182,14 +182,14 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
pub fn submit(this: &HtmlFormElement) -> Result<(), JsValue>;
#[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"]
pub fn get_with_index(this: &HtmlFormElement, index: u32) -> Option<Element>;
#[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs b/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
index ac4007777..403ce5b36 100644
--- a/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
+++ b/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
@@ -125,7 +125,7 @@ extern "C" {
js_class = "HTMLOptionsCollection",
indexing_setter
)]
- #[doc = "Indexing setter."]
+ #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_HtmlSelectElement.rs b/vendor/web-sys/src/features/gen_HtmlSelectElement.rs
index f15b03471..f1124eca4 100644
--- a/vendor/web-sys/src/features/gen_HtmlSelectElement.rs
+++ b/vendor/web-sys/src/features/gen_HtmlSelectElement.rs
@@ -334,7 +334,7 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"]
pub fn set_custom_validity(this: &HtmlSelectElement, error: &str);
#[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -348,7 +348,7 @@ extern "C" {
js_class = "HTMLSelectElement",
indexing_setter
)]
- #[doc = "Indexing setter."]
+ #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_IdbFileHandle.rs b/vendor/web-sys/src/features/gen_IdbFileHandle.rs
index 91ce76a42..4881af976 100644
--- a/vendor/web-sys/src/features/gen_IdbFileHandle.rs
+++ b/vendor/web-sys/src/features/gen_IdbFileHandle.rs
@@ -320,7 +320,7 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"]
pub fn write_with_u8_array(
this: &IdbFileHandle,
- value: &mut [u8],
+ value: &[u8],
) -> Result<Option<IdbFileRequest>, JsValue>;
#[cfg(all(feature = "Blob", feature = "IdbFileRequest",))]
# [wasm_bindgen (catch , method , structural , js_class = "IDBFileHandle" , js_name = write)]
diff --git a/vendor/web-sys/src/features/gen_ImageTrackList.rs b/vendor/web-sys/src/features/gen_ImageTrackList.rs
index b0c3aa8ce..d62c76e53 100644
--- a/vendor/web-sys/src/features/gen_ImageTrackList.rs
+++ b/vendor/web-sys/src/features/gen_ImageTrackList.rs
@@ -64,7 +64,7 @@ extern "C" {
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "ImageTrack")]
#[wasm_bindgen(method, structural, js_class = "ImageTrackList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_IsInputPendingOptions.rs b/vendor/web-sys/src/features/gen_IsInputPendingOptions.rs
new file mode 100644
index 000000000..9820eb88b
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_IsInputPendingOptions.rs
@@ -0,0 +1,58 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = IsInputPendingOptions)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `IsInputPendingOptions` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type IsInputPendingOptions;
+}
+#[cfg(web_sys_unstable_apis)]
+impl IsInputPendingOptions {
+ #[doc = "Construct a new `IsInputPendingOptions`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `includeContinuous` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn include_continuous(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("includeContinuous"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for IsInputPendingOptions {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_Lock.rs b/vendor/web-sys/src/features/gen_Lock.rs
new file mode 100644
index 000000000..98b93739a
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Lock.rs
@@ -0,0 +1,42 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Lock , typescript_type = "Lock")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Lock` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Lock)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Lock`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type Lock;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "Lock" , js_name = name)]
+ #[doc = "Getter for the `name` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Lock/name)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Lock`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn name(this: &Lock) -> String;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockMode")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Lock" , js_name = mode)]
+ #[doc = "Getter for the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Lock/mode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Lock`, `LockMode`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn mode(this: &Lock) -> LockMode;
+}
diff --git a/vendor/web-sys/src/features/gen_LockInfo.rs b/vendor/web-sys/src/features/gen_LockInfo.rs
new file mode 100644
index 000000000..d9ea0f7ec
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_LockInfo.rs
@@ -0,0 +1,93 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockInfo)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `LockInfo` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type LockInfo;
+}
+#[cfg(web_sys_unstable_apis)]
+impl LockInfo {
+ #[doc = "Construct a new `LockInfo`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `clientId` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn client_id(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("clientId"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockMode")]
+ #[doc = "Change the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockInfo`, `LockMode`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn mode(&mut self, val: LockMode) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `name` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockInfo`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn name(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for LockInfo {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_LockManager.rs b/vendor/web-sys/src/features/gen_LockManager.rs
new file mode 100644
index 000000000..d1d528948
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_LockManager.rs
@@ -0,0 +1,62 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManager , typescript_type = "LockManager")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `LockManager` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type LockManager;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = query)]
+ #[doc = "The `query()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/query)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn query(this: &LockManager) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)]
+ #[doc = "The `request()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn request_with_callback(
+ this: &LockManager,
+ name: &str,
+ callback: &::js_sys::Function,
+ ) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockOptions")]
+ # [wasm_bindgen (method , structural , js_class = "LockManager" , js_name = request)]
+ #[doc = "The `request()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`, `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn request_with_options_and_callback(
+ this: &LockManager,
+ name: &str,
+ options: &LockOptions,
+ callback: &::js_sys::Function,
+ ) -> ::js_sys::Promise;
+}
diff --git a/vendor/web-sys/src/features/gen_LockManagerSnapshot.rs b/vendor/web-sys/src/features/gen_LockManagerSnapshot.rs
new file mode 100644
index 000000000..87d1eed16
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_LockManagerSnapshot.rs
@@ -0,0 +1,75 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockManagerSnapshot)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `LockManagerSnapshot` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type LockManagerSnapshot;
+}
+#[cfg(web_sys_unstable_apis)]
+impl LockManagerSnapshot {
+ #[doc = "Construct a new `LockManagerSnapshot`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `held` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn held(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("held"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `pending` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManagerSnapshot`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn pending(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("pending"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for LockManagerSnapshot {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_LockMode.rs b/vendor/web-sys/src/features/gen_LockMode.rs
new file mode 100644
index 000000000..18459e67e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_LockMode.rs
@@ -0,0 +1,16 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+#[doc = "The `LockMode` enum."]
+#[doc = ""]
+#[doc = "*This API requires the following crate features to be activated: `LockMode`*"]
+#[doc = ""]
+#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum LockMode {
+ Shared = "shared",
+ Exclusive = "exclusive",
+}
diff --git a/vendor/web-sys/src/features/gen_LockOptions.rs b/vendor/web-sys/src/features/gen_LockOptions.rs
new file mode 100644
index 000000000..27131f050
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_LockOptions.rs
@@ -0,0 +1,112 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = LockOptions)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `LockOptions` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type LockOptions;
+}
+#[cfg(web_sys_unstable_apis)]
+impl LockOptions {
+ #[doc = "Construct a new `LockOptions`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `ifAvailable` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn if_available(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("ifAvailable"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockMode")]
+ #[doc = "Change the `mode` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockMode`, `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn mode(&mut self, val: LockMode) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AbortSignal")]
+ #[doc = "Change the `signal` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn signal(&mut self, val: &AbortSignal) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `steal` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn steal(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("steal"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for LockOptions {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_MediaList.rs b/vendor/web-sys/src/features/gen_MediaList.rs
index b74a1f680..a06c69e6f 100644
--- a/vendor/web-sys/src/features/gen_MediaList.rs
+++ b/vendor/web-sys/src/features/gen_MediaList.rs
@@ -55,7 +55,7 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `MediaList`*"]
pub fn item(this: &MediaList, index: u32) -> Option<String>;
#[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_MimeTypeArray.rs b/vendor/web-sys/src/features/gen_MimeTypeArray.rs
index eb6ea2c6e..cef986fb2 100644
--- a/vendor/web-sys/src/features/gen_MimeTypeArray.rs
+++ b/vendor/web-sys/src/features/gen_MimeTypeArray.rs
@@ -37,7 +37,7 @@ extern "C" {
pub fn named_item(this: &MimeTypeArray, name: &str) -> Option<MimeType>;
#[cfg(feature = "MimeType")]
#[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -45,7 +45,7 @@ extern "C" {
pub fn get_with_index(this: &MimeTypeArray, index: u32) -> Option<MimeType>;
#[cfg(feature = "MimeType")]
#[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_NamedNodeMap.rs b/vendor/web-sys/src/features/gen_NamedNodeMap.rs
index d30cb7194..82af2f737 100644
--- a/vendor/web-sys/src/features/gen_NamedNodeMap.rs
+++ b/vendor/web-sys/src/features/gen_NamedNodeMap.rs
@@ -85,7 +85,7 @@ extern "C" {
pub fn set_named_item_ns(this: &NamedNodeMap, arg: &Attr) -> Result<Option<Attr>, JsValue>;
#[cfg(feature = "Attr")]
#[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -93,7 +93,7 @@ extern "C" {
pub fn get_with_name(this: &NamedNodeMap, name: &str) -> Option<Attr>;
#[cfg(feature = "Attr")]
#[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Navigator.rs b/vendor/web-sys/src/features/gen_Navigator.rs
index 7bb30670f..17197347d 100644
--- a/vendor/web-sys/src/features/gen_Navigator.rs
+++ b/vendor/web-sys/src/features/gen_Navigator.rs
@@ -201,6 +201,18 @@ extern "C" {
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn xr(this: &Navigator) -> XrSystem;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "Scheduling")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = scheduling)]
+ #[doc = "Getter for the `scheduling` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/scheduling)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Scheduling`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn scheduling(this: &Navigator) -> Scheduling;
# [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = hardwareConcurrency)]
#[doc = "Getter for the `hardwareConcurrency` field of this object."]
#[doc = ""]
@@ -284,6 +296,18 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Navigator`*"]
pub fn languages(this: &Navigator) -> ::js_sys::Array;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockManager")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = locks)]
+ #[doc = "Getter for the `locks` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/locks)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`, `Navigator`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn locks(this: &Navigator) -> LockManager;
# [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = onLine)]
#[doc = "Getter for the `onLine` field of this object."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_NodeList.rs b/vendor/web-sys/src/features/gen_NodeList.rs
index bf453d7a7..3a3a95937 100644
--- a/vendor/web-sys/src/features/gen_NodeList.rs
+++ b/vendor/web-sys/src/features/gen_NodeList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &NodeList, index: u32) -> Option<Node>;
#[cfg(feature = "Node")]
#[wasm_bindgen(method, structural, js_class = "NodeList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Notification.rs b/vendor/web-sys/src/features/gen_Notification.rs
index 857ad0089..b0eaed5e8 100644
--- a/vendor/web-sys/src/features/gen_Notification.rs
+++ b/vendor/web-sys/src/features/gen_Notification.rs
@@ -20,6 +20,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationPermission`*"]
pub fn permission() -> NotificationPermission;
+ # [wasm_bindgen (structural , static_method_of = Notification , getter , js_class = "Notification" , js_name = maxActions)]
+ #[doc = "Getter for the `maxActions` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/maxActions)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn max_actions() -> u32;
# [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = onclick)]
#[doc = "Getter for the `onclick` field of this object."]
#[doc = ""]
@@ -112,6 +119,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Notification`*"]
pub fn tag(this: &Notification) -> Option<String>;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = image)]
+ #[doc = "Getter for the `image` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/image)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn image(this: &Notification) -> String;
# [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = icon)]
#[doc = "Getter for the `icon` field of this object."]
#[doc = ""]
@@ -119,6 +133,41 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Notification`*"]
pub fn icon(this: &Notification) -> Option<String>;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = badge)]
+ #[doc = "Getter for the `badge` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn badge(this: &Notification) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = vibrate)]
+ #[doc = "Getter for the `vibrate` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/vibrate)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn vibrate(this: &Notification) -> ::js_sys::Array;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = timestamp)]
+ #[doc = "Getter for the `timestamp` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/timestamp)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn timestamp(this: &Notification) -> f64;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = renotify)]
+ #[doc = "Getter for the `renotify` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/renotify)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn renotify(this: &Notification) -> bool;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = silent)]
+ #[doc = "Getter for the `silent` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/silent)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn silent(this: &Notification) -> Option<bool>;
# [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = requireInteraction)]
#[doc = "Getter for the `requireInteraction` field of this object."]
#[doc = ""]
@@ -133,6 +182,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Notification`*"]
pub fn data(this: &Notification) -> ::wasm_bindgen::JsValue;
+ # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = actions)]
+ #[doc = "Getter for the `actions` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/actions)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
+ pub fn actions(this: &Notification) -> ::js_sys::Array;
#[wasm_bindgen(catch, constructor, js_class = "Notification")]
#[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."]
#[doc = ""]
@@ -158,21 +214,6 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Notification`*"]
pub fn close(this: &Notification);
- # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)]
- #[doc = "The `get()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Notification`*"]
- pub fn get() -> Result<::js_sys::Promise, JsValue>;
- #[cfg(feature = "GetNotificationOptions")]
- # [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = get)]
- #[doc = "The `get()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `Notification`*"]
- pub fn get_with_filter(filter: &GetNotificationOptions) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission)]
#[doc = "The `requestPermission()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_NotificationAction.rs b/vendor/web-sys/src/features/gen_NotificationAction.rs
new file mode 100644
index 000000000..919e13c0f
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_NotificationAction.rs
@@ -0,0 +1,65 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationAction)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `NotificationAction` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"]
+ pub type NotificationAction;
+}
+impl NotificationAction {
+ #[doc = "Construct a new `NotificationAction`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"]
+ pub fn new(action: &str, title: &str) -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.action(action);
+ ret.title(title);
+ ret
+ }
+ #[doc = "Change the `action` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"]
+ pub fn action(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("action"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `icon` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"]
+ pub fn icon(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `title` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"]
+ pub fn title(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("title"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_NotificationBehavior.rs b/vendor/web-sys/src/features/gen_NotificationBehavior.rs
deleted file mode 100644
index 0f11b7e40..000000000
--- a/vendor/web-sys/src/features/gen_NotificationBehavior.rs
+++ /dev/null
@@ -1,113 +0,0 @@
-#![allow(unused_imports)]
-#![allow(clippy::all)]
-use super::*;
-use wasm_bindgen::prelude::*;
-#[wasm_bindgen]
-extern "C" {
- # [wasm_bindgen (extends = :: js_sys :: Object , js_name = NotificationBehavior)]
- #[derive(Debug, Clone, PartialEq, Eq)]
- #[doc = "The `NotificationBehavior` dictionary."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub type NotificationBehavior;
-}
-impl NotificationBehavior {
- #[doc = "Construct a new `NotificationBehavior`."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn new() -> Self {
- #[allow(unused_mut)]
- let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
- ret
- }
- #[doc = "Change the `noclear` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn noclear(&mut self, val: bool) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("noclear"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `noscreen` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn noscreen(&mut self, val: bool) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("noscreen"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `showOnlyOnce` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn show_only_once(&mut self, val: bool) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("showOnlyOnce"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `soundFile` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn sound_file(&mut self, val: &str) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("soundFile"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
- #[doc = "Change the `vibrationPattern` field of this object."]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"]
- pub fn vibration_pattern(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
- use wasm_bindgen::JsValue;
- let r = ::js_sys::Reflect::set(
- self.as_ref(),
- &JsValue::from("vibrationPattern"),
- &JsValue::from(val),
- );
- debug_assert!(
- r.is_ok(),
- "setting properties should never fail on our dictionary objects"
- );
- let _ = r;
- self
- }
-}
-impl Default for NotificationBehavior {
- fn default() -> Self {
- Self::new()
- }
-}
diff --git a/vendor/web-sys/src/features/gen_NotificationOptions.rs b/vendor/web-sys/src/features/gen_NotificationOptions.rs
index 31d504db7..ec01ac68a 100644
--- a/vendor/web-sys/src/features/gen_NotificationOptions.rs
+++ b/vendor/web-sys/src/features/gen_NotificationOptions.rs
@@ -20,6 +20,36 @@ impl NotificationOptions {
let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
ret
}
+ #[doc = "Change the `actions` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn actions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("actions"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `badge` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn badge(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("badge"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `body` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
@@ -73,6 +103,19 @@ impl NotificationOptions {
let _ = r;
self
}
+ #[doc = "Change the `image` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn image(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("image"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `lang` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
@@ -86,6 +129,23 @@ impl NotificationOptions {
let _ = r;
self
}
+ #[doc = "Change the `renotify` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn renotify(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("renotify"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `requireInteraction` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
@@ -103,6 +163,20 @@ impl NotificationOptions {
let _ = r;
self
}
+ #[doc = "Change the `silent` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn silent(&mut self, val: Option<bool>) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("silent"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `tag` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
@@ -116,6 +190,23 @@ impl NotificationOptions {
let _ = r;
self
}
+ #[doc = "Change the `timestamp` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"]
+ pub fn timestamp(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("timestamp"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
}
impl Default for NotificationOptions {
fn default() -> Self {
diff --git a/vendor/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs b/vendor/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs
index ef40e59a5..aed70a10e 100644
--- a/vendor/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs
+++ b/vendor/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs
@@ -1341,6 +1341,26 @@ extern "C" {
e: f64,
f: f64,
) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
+ #[doc = "The `setTransform()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"]
+ pub fn set_transform_with_default_dom_matrix_2d_init(
+ this: &OffscreenCanvasRenderingContext2d,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "DomMatrix2dInit")]
+ # [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = setTransform)]
+ #[doc = "The `setTransform()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/setTransform)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomMatrix2dInit`, `OffscreenCanvasRenderingContext2d`*"]
+ pub fn set_transform_with_dom_matrix_2d_init(
+ this: &OffscreenCanvasRenderingContext2d,
+ transform: &DomMatrix2dInit,
+ ) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "OffscreenCanvasRenderingContext2D" , js_name = transform)]
#[doc = "The `transform()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_PaintRequestList.rs b/vendor/web-sys/src/features/gen_PaintRequestList.rs
index c62d02771..8be17f217 100644
--- a/vendor/web-sys/src/features/gen_PaintRequestList.rs
+++ b/vendor/web-sys/src/features/gen_PaintRequestList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &PaintRequestList, index: u32) -> Option<PaintRequest>;
#[cfg(feature = "PaintRequest")]
#[wasm_bindgen(method, structural, js_class = "PaintRequestList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Plugin.rs b/vendor/web-sys/src/features/gen_Plugin.rs
index dd70afe34..dc2e59cd8 100644
--- a/vendor/web-sys/src/features/gen_Plugin.rs
+++ b/vendor/web-sys/src/features/gen_Plugin.rs
@@ -65,7 +65,7 @@ extern "C" {
pub fn named_item(this: &Plugin, name: &str) -> Option<MimeType>;
#[cfg(feature = "MimeType")]
#[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -73,7 +73,7 @@ extern "C" {
pub fn get_with_index(this: &Plugin, index: u32) -> Option<MimeType>;
#[cfg(feature = "MimeType")]
#[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_PluginArray.rs b/vendor/web-sys/src/features/gen_PluginArray.rs
index 73b3624ff..c9a648052 100644
--- a/vendor/web-sys/src/features/gen_PluginArray.rs
+++ b/vendor/web-sys/src/features/gen_PluginArray.rs
@@ -51,7 +51,7 @@ extern "C" {
pub fn refresh_with_reload_documents(this: &PluginArray, reload_documents: bool);
#[cfg(feature = "Plugin")]
#[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
@@ -59,7 +59,7 @@ extern "C" {
pub fn get_with_index(this: &PluginArray, index: u32) -> Option<Plugin>;
#[cfg(feature = "Plugin")]
#[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_ReadableStreamByobReader.rs b/vendor/web-sys/src/features/gen_ReadableStreamByobReader.rs
index 4a12b6ee5..fb1694723 100644
--- a/vendor/web-sys/src/features/gen_ReadableStreamByobReader.rs
+++ b/vendor/web-sys/src/features/gen_ReadableStreamByobReader.rs
@@ -37,16 +37,6 @@ extern "C" {
this: &ReadableStreamByobReader,
view: &::js_sys::Object,
) -> ::js_sys::Promise;
- # [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = read)]
- #[doc = "The `read()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamBYOBReader/read)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `ReadableStreamByobReader`*"]
- pub fn read_with_u8_array(
- this: &ReadableStreamByobReader,
- view: &mut [u8],
- ) -> ::js_sys::Promise;
# [wasm_bindgen (method , structural , js_class = "ReadableStreamBYOBReader" , js_name = releaseLock)]
#[doc = "The `releaseLock()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_RtcDataChannel.rs b/vendor/web-sys/src/features/gen_RtcDataChannel.rs
index 59b3aad43..09913d28b 100644
--- a/vendor/web-sys/src/features/gen_RtcDataChannel.rs
+++ b/vendor/web-sys/src/features/gen_RtcDataChannel.rs
@@ -19,6 +19,13 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"]
pub fn label(this: &RtcDataChannel) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = id)]
+ #[doc = "Getter for the `id` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/id)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"]
+ pub fn id(this: &RtcDataChannel) -> Option<u16>;
# [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = reliable)]
#[doc = "Getter for the `reliable` field of this object."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_RtcRtpTransceiverInit.rs b/vendor/web-sys/src/features/gen_RtcRtpTransceiverInit.rs
index ecf868878..f54384bb0 100644
--- a/vendor/web-sys/src/features/gen_RtcRtpTransceiverInit.rs
+++ b/vendor/web-sys/src/features/gen_RtcRtpTransceiverInit.rs
@@ -38,6 +38,23 @@ impl RtcRtpTransceiverInit {
let _ = r;
self
}
+ #[doc = "Change the `sendEncodings` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"]
+ pub fn send_encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("sendEncodings"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
#[doc = "Change the `streams` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"]
diff --git a/vendor/web-sys/src/features/gen_Scheduler.rs b/vendor/web-sys/src/features/gen_Scheduler.rs
new file mode 100644
index 000000000..09966ed0c
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Scheduler.rs
@@ -0,0 +1,46 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Scheduler , typescript_type = "Scheduler")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Scheduler` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduler`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type Scheduler;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "Scheduler" , js_name = postTask)]
+ #[doc = "The `postTask()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler/postTask)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduler`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn post_task(this: &Scheduler, callback: &::js_sys::Function) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "SchedulerPostTaskOptions")]
+ # [wasm_bindgen (method , structural , js_class = "Scheduler" , js_name = postTask)]
+ #[doc = "The `postTask()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduler/postTask)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `SchedulerPostTaskOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn post_task_with_options(
+ this: &Scheduler,
+ callback: &::js_sys::Function,
+ options: &SchedulerPostTaskOptions,
+ ) -> ::js_sys::Promise;
+}
diff --git a/vendor/web-sys/src/features/gen_SchedulerPostTaskOptions.rs b/vendor/web-sys/src/features/gen_SchedulerPostTaskOptions.rs
new file mode 100644
index 000000000..d1e8818cb
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_SchedulerPostTaskOptions.rs
@@ -0,0 +1,95 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = SchedulerPostTaskOptions)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `SchedulerPostTaskOptions` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type SchedulerPostTaskOptions;
+}
+#[cfg(web_sys_unstable_apis)]
+impl SchedulerPostTaskOptions {
+ #[doc = "Construct a new `SchedulerPostTaskOptions`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `delay` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn delay(&mut self, val: f64) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ #[doc = "Change the `priority` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SchedulerPostTaskOptions`, `TaskPriority`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn priority(&mut self, val: TaskPriority) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("priority"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "AbortSignal")]
+ #[doc = "Change the `signal` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `SchedulerPostTaskOptions`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn signal(&mut self, val: &AbortSignal) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for SchedulerPostTaskOptions {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_Scheduling.rs b/vendor/web-sys/src/features/gen_Scheduling.rs
new file mode 100644
index 000000000..a6f0748e0
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Scheduling.rs
@@ -0,0 +1,45 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Scheduling , typescript_type = "Scheduling")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `Scheduling` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduling`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type Scheduling;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "Scheduling" , js_name = isInputPending)]
+ #[doc = "The `isInputPending()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling/isInputPending)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduling`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn is_input_pending(this: &Scheduling) -> bool;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "IsInputPendingOptions")]
+ # [wasm_bindgen (method , structural , js_class = "Scheduling" , js_name = isInputPending)]
+ #[doc = "The `isInputPending()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Scheduling/isInputPending)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IsInputPendingOptions`, `Scheduling`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn is_input_pending_with_is_input_pending_options(
+ this: &Scheduling,
+ is_input_pending_options: &IsInputPendingOptions,
+ ) -> bool;
+}
diff --git a/vendor/web-sys/src/features/gen_ServiceWorkerRegistration.rs b/vendor/web-sys/src/features/gen_ServiceWorkerRegistration.rs
index 1923ab849..5556ea030 100644
--- a/vendor/web-sys/src/features/gen_ServiceWorkerRegistration.rs
+++ b/vendor/web-sys/src/features/gen_ServiceWorkerRegistration.rs
@@ -84,17 +84,6 @@ extern "C" {
pub fn get_notifications(
this: &ServiceWorkerRegistration,
) -> Result<::js_sys::Promise, JsValue>;
- #[cfg(feature = "GetNotificationOptions")]
- # [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications)]
- #[doc = "The `getNotifications()` method."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `ServiceWorkerRegistration`*"]
- pub fn get_notifications_with_filter(
- this: &ServiceWorkerRegistration,
- filter: &GetNotificationOptions,
- ) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification)]
#[doc = "The `showNotification()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SourceBufferList.rs b/vendor/web-sys/src/features/gen_SourceBufferList.rs
index 7bab0e8e8..6c9feca51 100644
--- a/vendor/web-sys/src/features/gen_SourceBufferList.rs
+++ b/vendor/web-sys/src/features/gen_SourceBufferList.rs
@@ -49,7 +49,7 @@ extern "C" {
pub fn set_onremovesourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>);
#[cfg(feature = "SourceBuffer")]
#[wasm_bindgen(method, structural, js_class = "SourceBufferList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SpeechGrammarList.rs b/vendor/web-sys/src/features/gen_SpeechGrammarList.rs
index cd91e27a2..62fb93590 100644
--- a/vendor/web-sys/src/features/gen_SpeechGrammarList.rs
+++ b/vendor/web-sys/src/features/gen_SpeechGrammarList.rs
@@ -78,7 +78,7 @@ extern "C" {
js_class = "SpeechGrammarList",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SpeechRecognitionResult.rs b/vendor/web-sys/src/features/gen_SpeechRecognitionResult.rs
index c057f4b36..feced968f 100644
--- a/vendor/web-sys/src/features/gen_SpeechRecognitionResult.rs
+++ b/vendor/web-sys/src/features/gen_SpeechRecognitionResult.rs
@@ -41,7 +41,7 @@ extern "C" {
js_class = "SpeechRecognitionResult",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SpeechRecognitionResultList.rs b/vendor/web-sys/src/features/gen_SpeechRecognitionResultList.rs
index 843e8dca6..4ed74d6e2 100644
--- a/vendor/web-sys/src/features/gen_SpeechRecognitionResultList.rs
+++ b/vendor/web-sys/src/features/gen_SpeechRecognitionResultList.rs
@@ -34,7 +34,7 @@ extern "C" {
js_class = "SpeechRecognitionResultList",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_Storage.rs b/vendor/web-sys/src/features/gen_Storage.rs
index 3844e1159..412d5997d 100644
--- a/vendor/web-sys/src/features/gen_Storage.rs
+++ b/vendor/web-sys/src/features/gen_Storage.rs
@@ -55,21 +55,21 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `Storage`*"]
pub fn set_item(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>;
#[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Storage`*"]
pub fn get(this: &Storage, key: &str) -> Result<Option<String>, JsValue>;
#[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_setter)]
- #[doc = "Indexing setter."]
+ #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Storage`*"]
pub fn set(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>;
#[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_deleter)]
- #[doc = "Indexing deleter."]
+ #[doc = "Indexing deleter. As in the literal Javascript `delete this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_StyleSheetList.rs b/vendor/web-sys/src/features/gen_StyleSheetList.rs
index e4b94122c..186015dc6 100644
--- a/vendor/web-sys/src/features/gen_StyleSheetList.rs
+++ b/vendor/web-sys/src/features/gen_StyleSheetList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &StyleSheetList, index: u32) -> Option<StyleSheet>;
#[cfg(feature = "StyleSheet")]
#[wasm_bindgen(method, structural, js_class = "StyleSheetList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgLengthList.rs b/vendor/web-sys/src/features/gen_SvgLengthList.rs
index 51289d884..2a30f7001 100644
--- a/vendor/web-sys/src/features/gen_SvgLengthList.rs
+++ b/vendor/web-sys/src/features/gen_SvgLengthList.rs
@@ -84,7 +84,7 @@ extern "C" {
) -> Result<SvgLength, JsValue>;
#[cfg(feature = "SvgLength")]
#[wasm_bindgen(catch, method, structural, js_class = "SVGLengthList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgNumberList.rs b/vendor/web-sys/src/features/gen_SvgNumberList.rs
index bf493a4af..bfe4bd9f0 100644
--- a/vendor/web-sys/src/features/gen_SvgNumberList.rs
+++ b/vendor/web-sys/src/features/gen_SvgNumberList.rs
@@ -84,7 +84,7 @@ extern "C" {
) -> Result<SvgNumber, JsValue>;
#[cfg(feature = "SvgNumber")]
#[wasm_bindgen(catch, method, structural, js_class = "SVGNumberList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgPathSegList.rs b/vendor/web-sys/src/features/gen_SvgPathSegList.rs
index d5a4eb001..9fc77b573 100644
--- a/vendor/web-sys/src/features/gen_SvgPathSegList.rs
+++ b/vendor/web-sys/src/features/gen_SvgPathSegList.rs
@@ -35,7 +35,7 @@ extern "C" {
js_class = "SVGPathSegList",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgPointList.rs b/vendor/web-sys/src/features/gen_SvgPointList.rs
index 1f8050f03..af13249ac 100644
--- a/vendor/web-sys/src/features/gen_SvgPointList.rs
+++ b/vendor/web-sys/src/features/gen_SvgPointList.rs
@@ -84,7 +84,7 @@ extern "C" {
) -> Result<SvgPoint, JsValue>;
#[cfg(feature = "SvgPoint")]
#[wasm_bindgen(catch, method, structural, js_class = "SVGPointList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgStringList.rs b/vendor/web-sys/src/features/gen_SvgStringList.rs
index 5713070bc..774a63600 100644
--- a/vendor/web-sys/src/features/gen_SvgStringList.rs
+++ b/vendor/web-sys/src/features/gen_SvgStringList.rs
@@ -84,7 +84,7 @@ extern "C" {
index: u32,
) -> Result<String, JsValue>;
#[wasm_bindgen(method, structural, js_class = "SVGStringList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_SvgTransformList.rs b/vendor/web-sys/src/features/gen_SvgTransformList.rs
index 618a78ef7..1f5957aae 100644
--- a/vendor/web-sys/src/features/gen_SvgTransformList.rs
+++ b/vendor/web-sys/src/features/gen_SvgTransformList.rs
@@ -115,7 +115,7 @@ extern "C" {
js_class = "SVGTransformList",
indexing_getter
)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_TaskController.rs b/vendor/web-sys/src/features/gen_TaskController.rs
new file mode 100644
index 000000000..3dcb523db
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskController.rs
@@ -0,0 +1,54 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = AbortController , extends = :: js_sys :: Object , js_name = TaskController , typescript_type = "TaskController")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskController` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskController`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskController;
+ #[cfg(web_sys_unstable_apis)]
+ #[wasm_bindgen(catch, constructor, js_class = "TaskController")]
+ #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskController`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Result<TaskController, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskControllerInit")]
+ #[wasm_bindgen(catch, constructor, js_class = "TaskController")]
+ #[doc = "The `new TaskController(..)` constructor, creating a new instance of `TaskController`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/TaskController)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskControllerInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new_with_init(init: &TaskControllerInit) -> Result<TaskController, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ # [wasm_bindgen (catch , method , structural , js_class = "TaskController" , js_name = setPriority)]
+ #[doc = "The `setPriority()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskController/setPriority)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskController`, `TaskPriority`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_priority(this: &TaskController, priority: TaskPriority) -> Result<(), JsValue>;
+}
diff --git a/vendor/web-sys/src/features/gen_TaskControllerInit.rs b/vendor/web-sys/src/features/gen_TaskControllerInit.rs
new file mode 100644
index 000000000..e66e8663d
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskControllerInit.rs
@@ -0,0 +1,59 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskControllerInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskControllerInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskControllerInit;
+}
+#[cfg(web_sys_unstable_apis)]
+impl TaskControllerInit {
+ #[doc = "Construct a new `TaskControllerInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ #[doc = "Change the `priority` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskControllerInit`, `TaskPriority`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn priority(&mut self, val: TaskPriority) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("priority"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for TaskControllerInit {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_TaskPriority.rs b/vendor/web-sys/src/features/gen_TaskPriority.rs
new file mode 100644
index 000000000..4d04fe23c
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskPriority.rs
@@ -0,0 +1,17 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+#[doc = "The `TaskPriority` enum."]
+#[doc = ""]
+#[doc = "*This API requires the following crate features to be activated: `TaskPriority`*"]
+#[doc = ""]
+#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+#[derive(Debug, Clone, Copy, PartialEq, Eq)]
+pub enum TaskPriority {
+ UserBlocking = "user-blocking",
+ UserVisible = "user-visible",
+ Background = "background",
+}
diff --git a/vendor/web-sys/src/features/gen_TaskPriorityChangeEvent.rs b/vendor/web-sys/src/features/gen_TaskPriorityChangeEvent.rs
new file mode 100644
index 000000000..618696a7b
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskPriorityChangeEvent.rs
@@ -0,0 +1,46 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TaskPriorityChangeEvent , typescript_type = "TaskPriorityChangeEvent")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskPriorityChangeEvent` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEvent`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskPriorityChangeEvent;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TaskPriorityChangeEvent" , js_name = previousPriority)]
+ #[doc = "Getter for the `previousPriority` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent/previousPriority)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEvent`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn previous_priority(this: &TaskPriorityChangeEvent) -> TaskPriority;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriorityChangeEventInit")]
+ #[wasm_bindgen(catch, constructor, js_class = "TaskPriorityChangeEvent")]
+ #[doc = "The `new TaskPriorityChangeEvent(..)` constructor, creating a new instance of `TaskPriorityChangeEvent`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskPriorityChangeEvent/TaskPriorityChangeEvent)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEvent`, `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new(
+ type_: &str,
+ priority_change_event_init_dict: &TaskPriorityChangeEventInit,
+ ) -> Result<TaskPriorityChangeEvent, JsValue>;
+}
diff --git a/vendor/web-sys/src/features/gen_TaskPriorityChangeEventInit.rs b/vendor/web-sys/src/features/gen_TaskPriorityChangeEventInit.rs
new file mode 100644
index 000000000..9992965d1
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskPriorityChangeEventInit.rs
@@ -0,0 +1,118 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskPriorityChangeEventInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskPriorityChangeEventInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskPriorityChangeEventInit;
+}
+#[cfg(web_sys_unstable_apis)]
+impl TaskPriorityChangeEventInit {
+ #[cfg(feature = "TaskPriority")]
+ #[doc = "Construct a new `TaskPriorityChangeEventInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new(previous_priority: TaskPriority) -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret.previous_priority(previous_priority);
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `bubbles` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn bubbles(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("bubbles"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `cancelable` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn cancelable(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("cancelable"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `composed` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn composed(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("composed"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ #[doc = "Change the `previousPriority` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskPriorityChangeEventInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn previous_priority(&mut self, val: TaskPriority) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("previousPriority"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_TaskSignal.rs b/vendor/web-sys/src/features/gen_TaskSignal.rs
new file mode 100644
index 000000000..be9a55645
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskSignal.rs
@@ -0,0 +1,77 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = AbortSignal , extends = EventTarget , extends = :: js_sys :: Object , js_name = TaskSignal , typescript_type = "TaskSignal")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskSignal` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskSignal;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskPriority")]
+ # [wasm_bindgen (structural , method , getter , js_class = "TaskSignal" , js_name = priority)]
+ #[doc = "Getter for the `priority` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/priority)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskPriority`, `TaskSignal`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn priority(this: &TaskSignal) -> TaskPriority;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "TaskSignal" , js_name = onprioritychange)]
+ #[doc = "Getter for the `onprioritychange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn onprioritychange(this: &TaskSignal) -> Option<::js_sys::Function>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , setter , js_class = "TaskSignal" , js_name = onprioritychange)]
+ #[doc = "Setter for the `onprioritychange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/onprioritychange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_onprioritychange(this: &TaskSignal, value: Option<&::js_sys::Function>);
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (static_method_of = TaskSignal , js_class = "TaskSignal" , js_name = any)]
+ #[doc = "The `any()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignal`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn any(signals: &::wasm_bindgen::JsValue) -> TaskSignal;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "TaskSignalAnyInit")]
+ # [wasm_bindgen (static_method_of = TaskSignal , js_class = "TaskSignal" , js_name = any)]
+ #[doc = "The `any()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TaskSignal/any)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignal`, `TaskSignalAnyInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn any_with_init(signals: &::wasm_bindgen::JsValue, init: &TaskSignalAnyInit)
+ -> TaskSignal;
+}
diff --git a/vendor/web-sys/src/features/gen_TaskSignalAnyInit.rs b/vendor/web-sys/src/features/gen_TaskSignalAnyInit.rs
new file mode 100644
index 000000000..3a81c9682
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_TaskSignalAnyInit.rs
@@ -0,0 +1,58 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = TaskSignalAnyInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `TaskSignalAnyInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type TaskSignalAnyInit;
+}
+#[cfg(web_sys_unstable_apis)]
+impl TaskSignalAnyInit {
+ #[doc = "Construct a new `TaskSignalAnyInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[cfg(web_sys_unstable_apis)]
+ #[doc = "Change the `priority` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `TaskSignalAnyInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn priority(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("priority"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+#[cfg(web_sys_unstable_apis)]
+impl Default for TaskSignalAnyInit {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/vendor/web-sys/src/features/gen_TextTrackCueList.rs b/vendor/web-sys/src/features/gen_TextTrackCueList.rs
index cc4222e6a..c2aa432b4 100644
--- a/vendor/web-sys/src/features/gen_TextTrackCueList.rs
+++ b/vendor/web-sys/src/features/gen_TextTrackCueList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn get_cue_by_id(this: &TextTrackCueList, id: &str) -> Option<VttCue>;
#[cfg(feature = "VttCue")]
#[wasm_bindgen(method, structural, js_class = "TextTrackCueList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_TextTrackList.rs b/vendor/web-sys/src/features/gen_TextTrackList.rs
index 646ffebc4..a71e51630 100644
--- a/vendor/web-sys/src/features/gen_TextTrackList.rs
+++ b/vendor/web-sys/src/features/gen_TextTrackList.rs
@@ -71,7 +71,7 @@ extern "C" {
pub fn get_track_by_id(this: &TextTrackList, id: &str) -> Option<TextTrack>;
#[cfg(feature = "TextTrack")]
#[wasm_bindgen(method, structural, js_class = "TextTrackList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_TouchList.rs b/vendor/web-sys/src/features/gen_TouchList.rs
index b78c261a2..e50608917 100644
--- a/vendor/web-sys/src/features/gen_TouchList.rs
+++ b/vendor/web-sys/src/features/gen_TouchList.rs
@@ -29,7 +29,7 @@ extern "C" {
pub fn item(this: &TouchList, index: u32) -> Option<Touch>;
#[cfg(feature = "Touch")]
#[wasm_bindgen(method, structural, js_class = "TouchList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_VideoTrackList.rs b/vendor/web-sys/src/features/gen_VideoTrackList.rs
index 4cd4d08a2..3502df03f 100644
--- a/vendor/web-sys/src/features/gen_VideoTrackList.rs
+++ b/vendor/web-sys/src/features/gen_VideoTrackList.rs
@@ -78,7 +78,7 @@ extern "C" {
pub fn get_track_by_id(this: &VideoTrackList, id: &str) -> Option<VideoTrack>;
#[cfg(feature = "VideoTrack")]
#[wasm_bindgen(method, structural, js_class = "VideoTrackList", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_ViewTransition.rs b/vendor/web-sys/src/features/gen_ViewTransition.rs
new file mode 100644
index 000000000..aa8f5ae1e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_ViewTransition.rs
@@ -0,0 +1,63 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = ViewTransition , typescript_type = "ViewTransition")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `ViewTransition` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type ViewTransition;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , js_name = updateCallbackDone)]
+ #[doc = "Getter for the `updateCallbackDone` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/updateCallbackDone)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn update_callback_done(this: &ViewTransition) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , js_name = ready)]
+ #[doc = "Getter for the `ready` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/ready)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn ready(this: &ViewTransition) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "ViewTransition" , js_name = finished)]
+ #[doc = "Getter for the `finished` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/finished)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn finished(this: &ViewTransition) -> ::js_sys::Promise;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (catch , method , structural , js_class = "ViewTransition" , js_name = skipTransition)]
+ #[doc = "The `skipTransition()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `ViewTransition`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn skip_transition(this: &ViewTransition) -> Result<(), JsValue>;
+}
diff --git a/vendor/web-sys/src/features/gen_WgslLanguageFeatures.rs b/vendor/web-sys/src/features/gen_WgslLanguageFeatures.rs
new file mode 100644
index 000000000..b338aedb7
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_WgslLanguageFeatures.rs
@@ -0,0 +1,88 @@
+#![allow(unused_imports)]
+#![allow(clippy::all)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WGSLLanguageFeatures , typescript_type = "WGSLLanguageFeatures")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `WgslLanguageFeatures` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type WgslLanguageFeatures;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "WGSLLanguageFeatures" , js_name = size)]
+ #[doc = "Getter for the `size` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/size)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn size(this: &WgslLanguageFeatures) -> u32;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = entries)]
+ #[doc = "The `entries()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/entries)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn entries(this: &WgslLanguageFeatures) -> ::js_sys::Iterator;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (catch , method , structural , js_class = "WGSLLanguageFeatures" , js_name = forEach)]
+ #[doc = "The `forEach()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/forEach)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn for_each(
+ this: &WgslLanguageFeatures,
+ callback: &::js_sys::Function,
+ ) -> Result<(), JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = has)]
+ #[doc = "The `has()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/has)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn has(this: &WgslLanguageFeatures, value: &str) -> bool;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = keys)]
+ #[doc = "The `keys()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/keys)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn keys(this: &WgslLanguageFeatures) -> ::js_sys::Iterator;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = values)]
+ #[doc = "The `values()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/values)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn values(this: &WgslLanguageFeatures) -> ::js_sys::Iterator;
+}
diff --git a/vendor/web-sys/src/features/gen_Window.rs b/vendor/web-sys/src/features/gen_Window.rs
index 55a200144..e7540b808 100644
--- a/vendor/web-sys/src/features/gen_Window.rs
+++ b/vendor/web-sys/src/features/gen_Window.rs
@@ -355,14 +355,6 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Window`*"]
pub fn device_pixel_ratio(this: &Window) -> f64;
- #[cfg(feature = "Performance")]
- # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = performance)]
- #[doc = "Getter for the `performance` field of this object."]
- #[doc = ""]
- #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance)"]
- #[doc = ""]
- #[doc = "*This API requires the following crate features to be activated: `Performance`, `Window`*"]
- pub fn performance(this: &Window) -> Option<Performance>;
# [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = orientation)]
#[doc = "Getter for the `orientation` field of this object."]
#[doc = ""]
@@ -1908,6 +1900,14 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"]
pub fn local_storage(this: &Window) -> Result<Option<Storage>, JsValue>;
+ #[cfg(feature = "Performance")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = performance)]
+ #[doc = "Getter for the `performance` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`, `Window`*"]
+ pub fn performance(this: &Window) -> Option<Performance>;
# [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = origin)]
#[doc = "Getter for the `origin` field of this object."]
#[doc = ""]
@@ -1938,6 +1938,18 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Window`*"]
pub fn caches(this: &Window) -> Result<CacheStorage, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "Scheduler")]
+ # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = scheduler)]
+ #[doc = "Getter for the `scheduler` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scheduler)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `Window`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn scheduler(this: &Window) -> Scheduler;
#[cfg(feature = "Storage")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "Window" , js_name = sessionStorage)]
#[doc = "Getter for the `sessionStorage` field of this object."]
@@ -2297,7 +2309,7 @@ extern "C" {
#[doc = "*This API requires the following crate features to be activated: `Window`*"]
pub fn stop(this: &Window) -> Result<(), JsValue>;
#[wasm_bindgen(method, structural, js_class = "Window", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_WorkerGlobalScope.rs b/vendor/web-sys/src/features/gen_WorkerGlobalScope.rs
index 0a8dac06a..df08803f5 100644
--- a/vendor/web-sys/src/features/gen_WorkerGlobalScope.rs
+++ b/vendor/web-sys/src/features/gen_WorkerGlobalScope.rs
@@ -85,6 +85,14 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"]
pub fn crypto(this: &WorkerGlobalScope) -> Result<Crypto, JsValue>;
+ #[cfg(feature = "Performance")]
+ # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = performance)]
+ #[doc = "Getter for the `performance` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/performance)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Performance`, `WorkerGlobalScope`*"]
+ pub fn performance(this: &WorkerGlobalScope) -> Option<Performance>;
# [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = origin)]
#[doc = "Getter for the `origin` field of this object."]
#[doc = ""]
@@ -115,6 +123,18 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"]
pub fn caches(this: &WorkerGlobalScope) -> Result<CacheStorage, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "Scheduler")]
+ # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = scheduler)]
+ #[doc = "Getter for the `scheduler` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/scheduler)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `Scheduler`, `WorkerGlobalScope`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn scheduler(this: &WorkerGlobalScope) -> Scheduler;
# [wasm_bindgen (catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = importScripts)]
#[doc = "The `importScripts()` method."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_WorkerNavigator.rs b/vendor/web-sys/src/features/gen_WorkerNavigator.rs
index e1038bda3..dc9fdf193 100644
--- a/vendor/web-sys/src/features/gen_WorkerNavigator.rs
+++ b/vendor/web-sys/src/features/gen_WorkerNavigator.rs
@@ -127,6 +127,18 @@ extern "C" {
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"]
pub fn languages(this: &WorkerNavigator) -> ::js_sys::Array;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "LockManager")]
+ # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = locks)]
+ #[doc = "Getter for the `locks` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/locks)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `LockManager`, `WorkerNavigator`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn locks(this: &WorkerNavigator) -> LockManager;
# [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = onLine)]
#[doc = "Getter for the `onLine` field of this object."]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/gen_XrInputSourceArray.rs b/vendor/web-sys/src/features/gen_XrInputSourceArray.rs
index d0d03e5f4..8489fb12a 100644
--- a/vendor/web-sys/src/features/gen_XrInputSourceArray.rs
+++ b/vendor/web-sys/src/features/gen_XrInputSourceArray.rs
@@ -30,7 +30,7 @@ extern "C" {
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "XrInputSource")]
#[wasm_bindgen(method, structural, js_class = "XRInputSourceArray", indexing_getter)]
- #[doc = "Indexing getter."]
+ #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
#[doc = ""]
#[doc = ""]
#[doc = ""]
diff --git a/vendor/web-sys/src/features/mod.rs b/vendor/web-sys/src/features/mod.rs
index e56624a0f..16189dcc6 100644
--- a/vendor/web-sys/src/features/mod.rs
+++ b/vendor/web-sys/src/features/mod.rs
@@ -220,6 +220,12 @@ mod gen_AudioContext;
#[cfg(feature = "AudioContext")]
pub use gen_AudioContext::*;
+#[cfg(feature = "AudioContextLatencyCategory")]
+#[allow(non_snake_case)]
+mod gen_AudioContextLatencyCategory;
+#[cfg(feature = "AudioContextLatencyCategory")]
+pub use gen_AudioContextLatencyCategory::*;
+
#[cfg(feature = "AudioContextOptions")]
#[allow(non_snake_case)]
mod gen_AudioContextOptions;
@@ -352,6 +358,24 @@ mod gen_AudioScheduledSourceNode;
#[cfg(feature = "AudioScheduledSourceNode")]
pub use gen_AudioScheduledSourceNode::*;
+#[cfg(feature = "AudioSinkInfo")]
+#[allow(non_snake_case)]
+mod gen_AudioSinkInfo;
+#[cfg(feature = "AudioSinkInfo")]
+pub use gen_AudioSinkInfo::*;
+
+#[cfg(feature = "AudioSinkOptions")]
+#[allow(non_snake_case)]
+mod gen_AudioSinkOptions;
+#[cfg(feature = "AudioSinkOptions")]
+pub use gen_AudioSinkOptions::*;
+
+#[cfg(feature = "AudioSinkType")]
+#[allow(non_snake_case)]
+mod gen_AudioSinkType;
+#[cfg(feature = "AudioSinkType")]
+pub use gen_AudioSinkType::*;
+
#[cfg(feature = "AudioStreamTrack")]
#[allow(non_snake_case)]
mod gen_AudioStreamTrack;
@@ -1210,30 +1234,6 @@ mod gen_CryptoKeyPair;
#[cfg(feature = "CryptoKeyPair")]
pub use gen_CryptoKeyPair::*;
-#[cfg(feature = "Csp")]
-#[allow(non_snake_case)]
-mod gen_Csp;
-#[cfg(feature = "Csp")]
-pub use gen_Csp::*;
-
-#[cfg(feature = "CspPolicies")]
-#[allow(non_snake_case)]
-mod gen_CspPolicies;
-#[cfg(feature = "CspPolicies")]
-pub use gen_CspPolicies::*;
-
-#[cfg(feature = "CspReport")]
-#[allow(non_snake_case)]
-mod gen_CspReport;
-#[cfg(feature = "CspReport")]
-pub use gen_CspReport::*;
-
-#[cfg(feature = "CspReportProperties")]
-#[allow(non_snake_case)]
-mod gen_CspReportProperties;
-#[cfg(feature = "CspReportProperties")]
-pub use gen_CspReportProperties::*;
-
#[cfg(feature = "CssAnimation")]
#[allow(non_snake_case)]
mod gen_CssAnimation;
@@ -1624,6 +1624,18 @@ mod gen_DomMatrix;
#[cfg(feature = "DomMatrix")]
pub use gen_DomMatrix::*;
+#[cfg(feature = "DomMatrix2dInit")]
+#[allow(non_snake_case)]
+mod gen_DomMatrix2dInit;
+#[cfg(feature = "DomMatrix2dInit")]
+pub use gen_DomMatrix2dInit::*;
+
+#[cfg(feature = "DomMatrixInit")]
+#[allow(non_snake_case)]
+mod gen_DomMatrixInit;
+#[cfg(feature = "DomMatrixInit")]
+pub use gen_DomMatrixInit::*;
+
#[cfg(feature = "DomMatrixReadOnly")]
#[allow(non_snake_case)]
mod gen_DomMatrixReadOnly;
@@ -2440,12 +2452,6 @@ mod gen_GetAnimationsOptions;
#[cfg(feature = "GetAnimationsOptions")]
pub use gen_GetAnimationsOptions::*;
-#[cfg(feature = "GetNotificationOptions")]
-#[allow(non_snake_case)]
-mod gen_GetNotificationOptions;
-#[cfg(feature = "GetNotificationOptions")]
-pub use gen_GetNotificationOptions::*;
-
#[cfg(feature = "GetRootNodeOptions")]
#[allow(non_snake_case)]
mod gen_GetRootNodeOptions;
@@ -2674,17 +2680,11 @@ mod gen_GpuComputePassEncoder;
#[cfg(feature = "GpuComputePassEncoder")]
pub use gen_GpuComputePassEncoder::*;
-#[cfg(feature = "GpuComputePassTimestampLocation")]
+#[cfg(feature = "GpuComputePassTimestampWrites")]
#[allow(non_snake_case)]
-mod gen_GpuComputePassTimestampLocation;
-#[cfg(feature = "GpuComputePassTimestampLocation")]
-pub use gen_GpuComputePassTimestampLocation::*;
-
-#[cfg(feature = "GpuComputePassTimestampWrite")]
-#[allow(non_snake_case)]
-mod gen_GpuComputePassTimestampWrite;
-#[cfg(feature = "GpuComputePassTimestampWrite")]
-pub use gen_GpuComputePassTimestampWrite::*;
+mod gen_GpuComputePassTimestampWrites;
+#[cfg(feature = "GpuComputePassTimestampWrites")]
+pub use gen_GpuComputePassTimestampWrites::*;
#[cfg(feature = "GpuComputePipeline")]
#[allow(non_snake_case)]
@@ -2884,6 +2884,24 @@ mod gen_GpuPipelineDescriptorBase;
#[cfg(feature = "GpuPipelineDescriptorBase")]
pub use gen_GpuPipelineDescriptorBase::*;
+#[cfg(feature = "GpuPipelineError")]
+#[allow(non_snake_case)]
+mod gen_GpuPipelineError;
+#[cfg(feature = "GpuPipelineError")]
+pub use gen_GpuPipelineError::*;
+
+#[cfg(feature = "GpuPipelineErrorInit")]
+#[allow(non_snake_case)]
+mod gen_GpuPipelineErrorInit;
+#[cfg(feature = "GpuPipelineErrorInit")]
+pub use gen_GpuPipelineErrorInit::*;
+
+#[cfg(feature = "GpuPipelineErrorReason")]
+#[allow(non_snake_case)]
+mod gen_GpuPipelineErrorReason;
+#[cfg(feature = "GpuPipelineErrorReason")]
+pub use gen_GpuPipelineErrorReason::*;
+
#[cfg(feature = "GpuPipelineLayout")]
#[allow(non_snake_case)]
mod gen_GpuPipelineLayout;
@@ -3004,17 +3022,11 @@ mod gen_GpuRenderPassLayout;
#[cfg(feature = "GpuRenderPassLayout")]
pub use gen_GpuRenderPassLayout::*;
-#[cfg(feature = "GpuRenderPassTimestampLocation")]
-#[allow(non_snake_case)]
-mod gen_GpuRenderPassTimestampLocation;
-#[cfg(feature = "GpuRenderPassTimestampLocation")]
-pub use gen_GpuRenderPassTimestampLocation::*;
-
-#[cfg(feature = "GpuRenderPassTimestampWrite")]
+#[cfg(feature = "GpuRenderPassTimestampWrites")]
#[allow(non_snake_case)]
-mod gen_GpuRenderPassTimestampWrite;
-#[cfg(feature = "GpuRenderPassTimestampWrite")]
-pub use gen_GpuRenderPassTimestampWrite::*;
+mod gen_GpuRenderPassTimestampWrites;
+#[cfg(feature = "GpuRenderPassTimestampWrites")]
+pub use gen_GpuRenderPassTimestampWrites::*;
#[cfg(feature = "GpuRenderPipeline")]
#[allow(non_snake_case)]
@@ -4180,6 +4192,12 @@ mod gen_IntlUtils;
#[cfg(feature = "IntlUtils")]
pub use gen_IntlUtils::*;
+#[cfg(feature = "IsInputPendingOptions")]
+#[allow(non_snake_case)]
+mod gen_IsInputPendingOptions;
+#[cfg(feature = "IsInputPendingOptions")]
+pub use gen_IsInputPendingOptions::*;
+
#[cfg(feature = "IterableKeyAndValueResult")]
#[allow(non_snake_case)]
mod gen_IterableKeyAndValueResult;
@@ -4306,6 +4324,42 @@ mod gen_Location;
#[cfg(feature = "Location")]
pub use gen_Location::*;
+#[cfg(feature = "Lock")]
+#[allow(non_snake_case)]
+mod gen_Lock;
+#[cfg(feature = "Lock")]
+pub use gen_Lock::*;
+
+#[cfg(feature = "LockInfo")]
+#[allow(non_snake_case)]
+mod gen_LockInfo;
+#[cfg(feature = "LockInfo")]
+pub use gen_LockInfo::*;
+
+#[cfg(feature = "LockManager")]
+#[allow(non_snake_case)]
+mod gen_LockManager;
+#[cfg(feature = "LockManager")]
+pub use gen_LockManager::*;
+
+#[cfg(feature = "LockManagerSnapshot")]
+#[allow(non_snake_case)]
+mod gen_LockManagerSnapshot;
+#[cfg(feature = "LockManagerSnapshot")]
+pub use gen_LockManagerSnapshot::*;
+
+#[cfg(feature = "LockMode")]
+#[allow(non_snake_case)]
+mod gen_LockMode;
+#[cfg(feature = "LockMode")]
+pub use gen_LockMode::*;
+
+#[cfg(feature = "LockOptions")]
+#[allow(non_snake_case)]
+mod gen_LockOptions;
+#[cfg(feature = "LockOptions")]
+pub use gen_LockOptions::*;
+
#[cfg(feature = "MediaCapabilities")]
#[allow(non_snake_case)]
mod gen_MediaCapabilities;
@@ -5008,11 +5062,11 @@ mod gen_Notification;
#[cfg(feature = "Notification")]
pub use gen_Notification::*;
-#[cfg(feature = "NotificationBehavior")]
+#[cfg(feature = "NotificationAction")]
#[allow(non_snake_case)]
-mod gen_NotificationBehavior;
-#[cfg(feature = "NotificationBehavior")]
-pub use gen_NotificationBehavior::*;
+mod gen_NotificationAction;
+#[cfg(feature = "NotificationAction")]
+pub use gen_NotificationAction::*;
#[cfg(feature = "NotificationDirection")]
#[allow(non_snake_case)]
@@ -6562,6 +6616,24 @@ mod gen_RtcrtpStreamStats;
#[cfg(feature = "RtcrtpStreamStats")]
pub use gen_RtcrtpStreamStats::*;
+#[cfg(feature = "Scheduler")]
+#[allow(non_snake_case)]
+mod gen_Scheduler;
+#[cfg(feature = "Scheduler")]
+pub use gen_Scheduler::*;
+
+#[cfg(feature = "SchedulerPostTaskOptions")]
+#[allow(non_snake_case)]
+mod gen_SchedulerPostTaskOptions;
+#[cfg(feature = "SchedulerPostTaskOptions")]
+pub use gen_SchedulerPostTaskOptions::*;
+
+#[cfg(feature = "Scheduling")]
+#[allow(non_snake_case)]
+mod gen_Scheduling;
+#[cfg(feature = "Scheduling")]
+pub use gen_Scheduling::*;
+
#[cfg(feature = "Screen")]
#[allow(non_snake_case)]
mod gen_Screen;
@@ -7810,6 +7882,48 @@ mod gen_SvgtSpanElement;
#[cfg(feature = "SvgtSpanElement")]
pub use gen_SvgtSpanElement::*;
+#[cfg(feature = "TaskController")]
+#[allow(non_snake_case)]
+mod gen_TaskController;
+#[cfg(feature = "TaskController")]
+pub use gen_TaskController::*;
+
+#[cfg(feature = "TaskControllerInit")]
+#[allow(non_snake_case)]
+mod gen_TaskControllerInit;
+#[cfg(feature = "TaskControllerInit")]
+pub use gen_TaskControllerInit::*;
+
+#[cfg(feature = "TaskPriority")]
+#[allow(non_snake_case)]
+mod gen_TaskPriority;
+#[cfg(feature = "TaskPriority")]
+pub use gen_TaskPriority::*;
+
+#[cfg(feature = "TaskPriorityChangeEvent")]
+#[allow(non_snake_case)]
+mod gen_TaskPriorityChangeEvent;
+#[cfg(feature = "TaskPriorityChangeEvent")]
+pub use gen_TaskPriorityChangeEvent::*;
+
+#[cfg(feature = "TaskPriorityChangeEventInit")]
+#[allow(non_snake_case)]
+mod gen_TaskPriorityChangeEventInit;
+#[cfg(feature = "TaskPriorityChangeEventInit")]
+pub use gen_TaskPriorityChangeEventInit::*;
+
+#[cfg(feature = "TaskSignal")]
+#[allow(non_snake_case)]
+mod gen_TaskSignal;
+#[cfg(feature = "TaskSignal")]
+pub use gen_TaskSignal::*;
+
+#[cfg(feature = "TaskSignalAnyInit")]
+#[allow(non_snake_case)]
+mod gen_TaskSignalAnyInit;
+#[cfg(feature = "TaskSignalAnyInit")]
+pub use gen_TaskSignalAnyInit::*;
+
#[cfg(feature = "TcpReadyState")]
#[allow(non_snake_case)]
mod gen_TcpReadyState;
@@ -8452,6 +8566,12 @@ mod gen_VideoTransferCharacteristics;
#[cfg(feature = "VideoTransferCharacteristics")]
pub use gen_VideoTransferCharacteristics::*;
+#[cfg(feature = "ViewTransition")]
+#[allow(non_snake_case)]
+mod gen_ViewTransition;
+#[cfg(feature = "ViewTransition")]
+pub use gen_ViewTransition::*;
+
#[cfg(feature = "VisibilityState")]
#[allow(non_snake_case)]
mod gen_VisibilityState;
@@ -8932,6 +9052,12 @@ mod gen_WebrtcGlobalStatisticsReport;
#[cfg(feature = "WebrtcGlobalStatisticsReport")]
pub use gen_WebrtcGlobalStatisticsReport::*;
+#[cfg(feature = "WgslLanguageFeatures")]
+#[allow(non_snake_case)]
+mod gen_WgslLanguageFeatures;
+#[cfg(feature = "WgslLanguageFeatures")]
+pub use gen_WgslLanguageFeatures::*;
+
#[cfg(feature = "WheelEvent")]
#[allow(non_snake_case)]
mod gen_WheelEvent;
diff --git a/vendor/web-sys/src/lib.rs b/vendor/web-sys/src/lib.rs
index c057cd9c1..01e9aa799 100644
--- a/vendor/web-sys/src/lib.rs
+++ b/vendor/web-sys/src/lib.rs
@@ -17,6 +17,9 @@
mod features;
pub use features::*;
+pub use js_sys;
+pub use wasm_bindgen;
+
/// Getter for the `Window` object
///
/// [MDN Documentation]