web_wt_sys/webtransport/web_transport_error_source.rs
1//! [`WebTransportErrorSource`]
2//!
3//! <https://w3c.github.io/webtransport/#enumdef-webtransporterrorsource>
4
5#![allow(missing_docs)]
6
7use wasm_bindgen::prelude::*;
8
9/// The `WebTransportErrorSource` enum.
10///
11/// <https://w3c.github.io/webtransport/#enumdef-webtransporterrorsource>
12#[wasm_bindgen]
13#[derive(Debug, Clone, Copy, PartialEq, Eq)]
14pub enum WebTransportErrorSource {
15 /// Error originated from the stream.
16 Stream = "stream",
17 /// Error originated from the session.
18 Session = "session",
19}