1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! QMux protocol (draft-ietf-quic-qmux-02) over reliable transports.
//!
//! Provides QUIC-style multiplexed streams over TCP, TLS, and WebSocket.
//! Speaks draft-02 by default, negotiating down to draft-01 or draft-00, with
//! backwards compatibility for the legacy `webtransport` wire format.
// ALPN/subprotocol negotiation is only used by the TLS and WebSocket transports.
/// Transport abstraction and the byte-stream [`transport::Stream`] implementation.
/// Plain TCP transport.
/// Unix domain socket transport.
/// TLS over TCP transport.
/// WebSocket transport.
// Re-export the WebSocket dependencies so downstream integrations can use the
// exact versions compatible with QMux's public WebSocket types.
pub use tokio_tungstenite;
pub use tungstenite;
pub use ;
use *;
pub use ;
pub use Error;
pub use Version;
pub use ;
pub use ;
pub use Transport;
// The transport half-traits live at `transport::{Reader, Writer}` and the concrete
// byte-stream transport at `transport::Stream`, rather than the crate root — the
// bare `Reader`/`Writer`/`Stream` names would be too generic (and `Stream` would
// collide with the STREAM-frame `Stream` type) alongside the rest of the API.
/// All supported ALPN identifiers, in preference order.
///
/// Use this when configuring TLS to advertise QMux support.
/// For version-specific ALPNs, use [`Version::alpn()`].
pub const ALPNS: & = &;