Skip to main content

procwire_client/protocol/
mod.rs

1//! Protocol module - wire format, framing, and frame types.
2//!
3//! This module implements the binary protocol for the data plane:
4//! - 11-byte header encoding/decoding
5//! - Frame buffer for accumulating partial reads
6//! - Frame struct with typed accessors
7//! - Header pool for zero-allocation encoding
8
9mod frame;
10mod frame_buffer;
11pub mod header_pool;
12mod wire_format;
13
14pub use frame::{build_frame, build_frame_parts, Frame};
15pub use frame_buffer::FrameBuffer;
16pub use header_pool::{encode_header_pooled, with_header_pool, HeaderPool};
17pub use wire_format::{
18    decode_header, encode_header, encode_header_into, flags, validate_header, Header,
19    ABORT_METHOD_ID, ABSOLUTE_MAX_PAYLOAD_SIZE, DEFAULT_MAX_PAYLOAD_SIZE, HEADER_POOL_SIZE,
20    HEADER_SIZE, RESERVED_METHOD_ID,
21};