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
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
use crateVarInt;
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.12
//# A sender SHOULD send a DATA_BLOCKED frame (type=0x14) when it wishes
//# to send data, but is unable to do so due to connection-level flow
//# control; see Section 4. DATA_BLOCKED frames can be used as input to
//# tuning of flow control algorithms; see Section 4.2.
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.12
//# DATA_BLOCKED Frame {
//# Type (i) = 0x14,
//# Maximum Data (i),
//# }
//= https://www.rfc-editor.org/rfc/rfc9000#section-19.12
//# DATA_BLOCKED frames contain the following field:
//#
//# Maximum Data: A variable-length integer indicating the connection-
//# level limit at which blocking occurred.
simple_frame_codec!;