Crate umsh_text

Crate umsh_text 

Source
Expand description

Text-message support for UMSH.

This crate owns the text-message payload types/codecs together with the node-layer convenience wrappers for plain chat-style applications.

Applications that want raw packet access can stay at the umsh-node layer, while callers that want text-specific ergonomics can build on the wrappers here.

Modules§

text_message
Namespace for raw text-message codec functions.

Structs§

Fragment
MessageSequence
MulticastTextChatWrapper
OwnedTextMessage
TextMessage
UnicastTextChatWrapper
Thin convenience wrapper for plain unicast text chat over a peer connection.

Enums§

EncodeError
Error returned when encoding text payloads.
MessageType
Text-message rendering type.
ParseError
Error returned when parsing or validating text payloads.
Regarding
TextReceiveIssue
Reason a received packet did not become a text message callback.
TextSendError
Error returned when sending a text payload through a transport wrapper.

Functions§

encode_text_message
parse_text_message
parse_text_payload
Parse a typed text payload in the context of the enclosing packet type.