Expand description
Control protocol implementation for quic-reverse.
This crate provides the control plane protocol used by quic-reverse sessions, including message types, framing, and codec abstractions.
Structs§
- Bincode
Codec - Bincode codec for efficient binary serialization.
- Features
- Feature flags negotiated during
Hello/HelloAckexchange. - Frame
Reader - Reads length-prefixed frames from a byte buffer.
- Frame
Writer - Writes length-prefixed frames to a byte buffer.
- Hello
- Initial handshake message sent by both peers.
- Hello
Ack - Handshake acknowledgment confirming negotiated parameters.
- Open
Flags - Flags for
OpenRequestmessages. - Open
Request - Request to open a reverse stream.
- Open
Response - Response to an
OpenRequest. - Ping
- Keep-alive ping message.
- Pong
- Keep-alive pong response.
- Service
Id - Identifies a logical service for multiplexing.
- Stream
Bind - Stream binding frame sent on data streams.
- Stream
Close - Notification that a stream has closed.
Enums§
- Close
Code - Close codes for
StreamClosemessages. - Codec
Error - Errors that can occur during codec operations.
- Control
Error - Errors that can occur during control protocol operations.
- Metadata
- Metadata attached to stream open requests.
- Metadata
Value - A value within structured metadata.
- Open
Status - Status of an
OpenRequest. - Protocol
Message - All protocol messages that can be exchanged on the control stream.
- Reject
Code - Reason codes for rejecting an
OpenRequest.
Constants§
- MAX_
FRAME_ SIZE - Maximum frame size (64KB).
- PROTOCOL_
VERSION - Current protocol version.
Traits§
- Codec
- Trait for message serialization codecs.
Functions§
- decode_
frame - Decodes a length-prefixed frame, returning the payload.
- encode_
frame - Encodes a payload into a length-prefixed frame.