Skip to main content

web_wt_sys/webtransport/
web_transport_congestion_control.rs

1//! [`WebTransportCongestionControl`]
2//!
3//! <https://w3c.github.io/webtransport/#enumdef-webtransportcongestioncontrol>
4
5#![allow(missing_docs)]
6
7use wasm_bindgen::prelude::*;
8
9/// The `WebTransportCongestionControl` enum.
10///
11/// <https://w3c.github.io/webtransport/#enumdef-webtransportcongestioncontrol>
12#[wasm_bindgen]
13#[derive(Debug, Clone, Copy, PartialEq, Eq)]
14pub enum WebTransportCongestionControl {
15    /// Default.
16    Default = "default",
17    /// Favour throughput.
18    Throughput = "throughput",
19    /// Favour low latency.
20    LowLatency = "low-latency",
21}