Skip to main content

Crate rstmdb_protocol

Crate rstmdb_protocol 

Source
Expand description

§rstmdb-protocol

Wire protocol implementation for rstmdb (RCP - rstmdb Command Protocol).

This crate provides:

  • Binary framing with length prefix and CRC32C validation
  • JSON message serialization/deserialization
  • Request/Response envelope types
  • Error codes and protocol constants

Re-exports§

pub use codec::Decoder;
pub use codec::Encoder;
pub use error::ErrorCode;
pub use error::ProtocolError;
pub use frame::Frame;
pub use frame::FrameFlags;
pub use frame::FRAME_HEADER_SIZE;
pub use frame::MAGIC;
pub use message::Operation;
pub use message::Request;
pub use message::Response;
pub use message::ResponseError;
pub use message::ResponseMeta;
pub use message::ResponseStatus;

Modules§

codec
Encoder and decoder for RCP frames and messages.
error
Protocol error types and error codes.
frame
Binary frame format for RCP.
message
JSON message types for RCP requests and responses.

Constants§

DEFAULT_PORT
Default port for rstmdb server.
MAX_PAYLOAD_SIZE
Maximum frame payload size (16 MiB).
PROTOCOL_VERSION
Protocol version supported by this implementation.