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
//! Wire format types for QMux frame encoding and decoding.
pub use *;
pub use *;
pub use *;
/// Default maximum record size per draft-01 (16382 bytes).
pub use DEFAULT_MAX_RECORD_SIZE;
/// Maximum size of a single QMux frame on the wire (type + fields + payload).
/// For draft-00, this is the maximum frame size.
/// For draft-01, this is superseded by max_record_size.
pub const MAX_FRAME_SIZE: usize = 16384;
/// Maximum payload size for a STREAM frame, accounting for frame overhead.
/// Overhead: frame type, stream ID, offset, and length (up to 8 bytes each).
pub const MAX_FRAME_PAYLOAD: usize = MAX_FRAME_SIZE - 32;
/// Number of bytes a QUIC varint occupies when encoding `v`.
pub const