s2n_quic_core/frame/
handshake_done.rs

1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4//= https://www.rfc-editor.org/rfc/rfc9000#section-19.20
5//# The server uses a HANDSHAKE_DONE frame (type=0x1e) to signal
6//# confirmation of the handshake to the client.
7
8macro_rules! handshake_done_tag {
9    () => {
10        0x1eu8
11    };
12}
13
14#[derive(Copy, Clone, Debug, PartialEq, Eq)]
15pub struct HandshakeDone;
16
17impl HandshakeDone {
18    pub const fn tag(self) -> u8 {
19        handshake_done_tag!()
20    }
21}
22
23simple_frame_codec!(HandshakeDone {}, handshake_done_tag!());