//! The wire protocol (no networking): message types generated from `proto/dspk_stream.proto`,
//! length-prefixed framing, and conversions to and from dspk-core / dspk-view types.
//!
//! See the `.proto` file for the session layout (control, signal and view streams).
/// Messages generated from `proto/dspk_stream.proto` (package `dspk_stream.v1`).
/// Protocol version sent in `ClientHello` and `Header`; peers of another version are refused.
pub const PROTOCOL_VERSION: u32 = 1;
/// TLS application protocol (ALPN): names the protocol and its version, so QUIC refuses peers
/// speaking another one before any message is exchanged.
pub const ALPN: & = b"dspk-stream/1";
/// Bytes of the big-endian length before every message.
pub const LENGTH_PREFIX_BYTES: usize = 4;
/// Default upper bound on one encoded message (64 MiB); larger lengths are rejected before
/// allocating.
pub const DEFAULT_MAX_MESSAGE_BYTES: usize = 64 << 20;
pub use ;
pub use ;