Skip to main content

web_wt_sys/webtransport/
web_transport_error_options.rs

1//! [`WebTransportErrorOptions`]
2//!
3//! <https://w3c.github.io/webtransport/#dictdef-webtransporterroroptions>
4
5use wasm_bindgen::prelude::*;
6
7use super::*;
8
9crate::dictionary_type! {
10    /// ```webidl
11    /// dictionary WebTransportErrorOptions {
12    ///   WebTransportErrorSource source = "stream";
13    ///   [Clamp] unsigned long? streamErrorCode = null;
14    /// };
15    /// ```
16    ///
17    /// <https://w3c.github.io/webtransport/#dictdef-webtransporterroroptions>
18    pub type WebTransportErrorOptions {
19        source: WebTransportErrorSource => source
20        stream_error_code: u32 => streamErrorCode
21    }
22}