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.- Node-layer convenience wrappers (feature
node) 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;
Modules§
- 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.
- text_
message - Namespace for raw text-message codec functions.
- validate
- Semantic validation of decoded text messages in conversation context.
Structs§
- Multicast
Text Chat Wrapper - Owned
Extension Options - Owned copy of a message’s extension-option block.
- Owned
Text Message - Owned counterpart of
TextMessage. - Unicast
Text Chat Wrapper - Thin convenience wrapper for plain unicast text chat over a peer connection.
Enums§
- Encode
Error - Error returned when encoding text payloads.
- Parse
Error - Error returned when parsing or validating text payloads.
- Text
Receive Issue - Reason a received packet did not become a text message callback.
- Text
Send Error - Error returned when sending a text payload through a transport wrapper.
Functions§
- parse_
text_ payload - Parse a typed text payload in the context of the enclosing packet type.