Expand description
Text-message support for UMSH.
This crate implements the stateful text-message protocol once, for use by both mobile applications and embedded pagers:
codec: exact wire bytes—borrowed decoding and encoding, with extension options preserved for profile-specific validation. Works withoutalloc.validate: semantic validation of a decoded message in conversation context, selected by avalidate::TextProfile.engine: a deterministic sans-I/O reducer owning sequence allocation, deduplication, fragmentation, reassembly, and bounded repair. It receives commands and emits effects and events; platform code owns presentation, storage, and transports.chat(featurealloc): the allocated chat facade around the engine—typed conversations, the channel registry, sender resolution, and compose batches whose frames wait on storage.node_adapter(featurenode): received frames to facade sources, the facade’s transmissions toumsh-nodesends, and convenience wrappers for chat-style applications built directly onumsh-node.
Re-exports§
pub use model::ConversationKey;pub use model::ExtensionOptions;pub use model::FRAGMENT_BODY_MAX;pub use model::FRAGMENT_COUNT_MAX;pub use model::Fragment;pub use model::MessageSequence;pub use model::MessageType;pub use model::REASSEMBLED_BODY_MAX;pub use model::Regarding;pub use model::SenderScope;pub use model::TextMessage;pub use model::WireRef;pub use codec::ParseInfo;pub use codec::encode as encode_text_message;pub use codec::parse as parse_text_message;pub use node_adapter::TextReceiveIssue;pub use node_adapter::UnicastTextChatWrapper;pub use node_adapter::parse_text_payload;pub use node_adapter::MulticastTextChatWrapper;
Modules§
- chat
- Allocated chat facade around the text engine (feature
alloc). - codec
- Wire codec for text messages: exact bytes only.
- engine
- Deterministic sans-I/O text-message engine.
- model
- Wire-level model types for text messages.
- node_
adapter - Node-layer adapters for chat-style applications (feature
node). - text_
message - Namespace for raw text-message codec functions.
- validate
- Semantic validation of decoded text messages in conversation context.
Structs§
- Owned
Extension Options - Owned copy of a message’s extension-option block.
- Owned
Text Message - Owned counterpart of
TextMessage.
Enums§
- Encode
Error - Error returned when encoding text payloads.
- Parse
Error - Error returned when parsing or validating text payloads.
- Text
Send Error - Error returned when sending a text payload through a transport wrapper.