Skip to main content

mongreldb_protocol/
lib.rs

1//! MongrelDB versioned protocol messages and service definitions (spec
2//! section 6.7, Stage 1D).
3//!
4//! Every protocol adapter (native RPC, HTTP/JSON, Kit, MySQL wire) converts
5//! into the canonical request model defined here. All network formats carry a
6//! versioned envelope and fail closed on incompatible versions (spec 4.10).
7//!
8//! - [`request`]: the canonical request model every adapter converts into
9//!   (S1D-001).
10//! - [`envelope`]: the versioned, checksummed wire envelope with fail-closed
11//!   decode (spec section 4.10).
12//! - [`services`]: the seven service traits adapters dispatch against
13//!   (S1D-003).
14//! - [`session`]: the server-side session model (S1D-004).
15//! - [`prepared`]: the prepared-statement binding record and its
16//!   invalidation check (S1D-005).
17
18pub mod envelope;
19pub mod prepared;
20pub mod request;
21pub mod services;
22pub mod session;
23
24#[cfg(test)]
25pub(crate) mod test_support;