Crate quic_reverse_control

Crate quic_reverse_control 

Source
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§

BincodeCodec
Bincode codec for efficient binary serialization.
Features
Feature flags negotiated during Hello/HelloAck exchange.
FrameReader
Reads length-prefixed frames from a byte buffer.
FrameWriter
Writes length-prefixed frames to a byte buffer.
Hello
Initial handshake message sent by both peers.
HelloAck
Handshake acknowledgment confirming negotiated parameters.
OpenFlags
Flags for OpenRequest messages.
OpenRequest
Request to open a reverse stream.
OpenResponse
Response to an OpenRequest.
Ping
Keep-alive ping message.
Pong
Keep-alive pong response.
ServiceId
Identifies a logical service for multiplexing.
StreamBind
Stream binding frame sent on data streams.
StreamClose
Notification that a stream has closed.

Enums§

CloseCode
Close codes for StreamClose messages.
CodecError
Errors that can occur during codec operations.
ControlError
Errors that can occur during control protocol operations.
Metadata
Metadata attached to stream open requests.
MetadataValue
A value within structured metadata.
OpenStatus
Status of an OpenRequest.
ProtocolMessage
All protocol messages that can be exchanged on the control stream.
RejectCode
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.