Skip to main content

Module protocol

Module protocol 

Source
Expand description

Peat-Lite Wire Protocol

Single source of truth for the Peat-Lite binary protocol (ADR-035). This module is no_std-compatible and has zero additional dependencies, so it can be consumed by both embedded (peat-lite) and hosted (peat-mesh) code.

Re-exports§

pub use capabilities::NodeCapabilities;
pub use crdt_type::CrdtType;
pub use error::MessageError;
pub use header::decode_header;
pub use header::encode_header;
pub use header::Header;
pub use message_type::MessageType;
pub use ttl::append_ttl;
pub use ttl::default_ttl_for_crdt;
pub use ttl::strip_ttl;
pub use constants::*;

Modules§

capabilities
Node capability flags announced during handshake.
constants
Protocol-level constants.
crdt_type
CRDT type identifiers for Data messages.
error
Message encoding/decoding errors.
header
Peat-Lite packet header codec.
message_type
Peat-Lite message type identifiers.
ota
OTA (Over-The-Air) wire protocol constants.
ttl
TTL (Time-To-Live) codec for Data messages.