web_wt_sys/webtransport/web_transport_options.rs
1//! [`WebTransportOptions`]
2//!
3//! <https://w3c.github.io/webtransport/#dictdef-webtransportoptions>
4
5use wasm_bindgen::prelude::*;
6
7extern crate alloc;
8
9use super::*;
10
11crate::dictionary_type! {
12 /// ```webidl
13 /// dictionary WebTransportOptions {
14 /// boolean allowPooling = false;
15 /// boolean requireUnreliable = false;
16 /// sequence<WebTransportHash> serverCertificateHashes;
17 /// WebTransportCongestionControl congestionControl = "default";
18 /// [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
19 /// [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams = null;
20 /// };
21 /// ```
22 ///
23 /// <https://w3c.github.io/webtransport/#dictdef-webtransportoptions>
24 pub type WebTransportOptions {
25 allow_pooling: bool => allowPooling
26 require_unreliable: bool => requireUnreliable
27 server_certificate_hashes: alloc::vec::Vec<WebTransportHash> => serverCertificateHashes
28 congestion_control: WebTransportCongestionControl => congestionControl
29 anticipated_concurrent_incoming_unidirectional_streams: u16 => anticipatedConcurrentIncomingUnidirectionalStreams
30 anticipated_concurrent_incoming_bidirectional_streams: u16 => anticipatedConcurrentIncomingBidirectionalStreams
31 }
32}