Skip to main content

web_wt_sys/webtransport/
web_transport_reliability_mode.rs

1//! [`WebTransportReliabilityMode`]
2//!
3//! <https://w3c.github.io/webtransport/#enumdef-webtransportreliabilitymode>
4
5#![allow(missing_docs)]
6
7use wasm_bindgen::prelude::*;
8
9/// The `WebTransportReliabilityMode` enum.
10///
11/// <https://w3c.github.io/webtransport/#enumdef-webtransportreliabilitymode>
12#[wasm_bindgen]
13#[derive(Debug, Clone, Copy, PartialEq, Eq)]
14pub enum WebTransportReliabilityMode {
15    /// Pending more info.
16    Pending = "pending",
17    /// Transport only supports reliable transport through uni/bidirectional
18    /// streams.
19    ReliableOnly = "reliable-only",
20    /// Transport supports streams and unreliable datagrams.
21    SupportsUnreliable = "supports-unreliable",
22}