quic_reverse_control/
lib.rs

1// Copyright 2024-2026 Farlight Networks, LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Control protocol implementation for quic-reverse.
16//!
17//! This crate provides the control plane protocol used by quic-reverse sessions,
18//! including message types, framing, and codec abstractions.
19
20mod codec;
21mod error;
22mod framing;
23mod messages;
24
25pub use codec::{BincodeCodec, Codec, CodecError};
26pub use error::ControlError;
27pub use framing::{decode_frame, encode_frame, FrameReader, FrameWriter, MAX_FRAME_SIZE};
28pub use messages::{
29    CloseCode, Features, Hello, HelloAck, Metadata, MetadataValue, OpenFlags, OpenRequest,
30    OpenResponse, OpenStatus, Ping, Pong, ProtocolMessage, RejectCode, ServiceId, StreamBind,
31    StreamClose, PROTOCOL_VERSION,
32};