Structs§
- Room
Config - Configuration for a room’s access controls and metadata.
- Room
List Entry - Entry returned by room listing (discovery).
Enums§
- DmRoom
Error - Error returned when constructing a DM room ID with invalid inputs.
- Event
Filter - Filter controlling which event types a user receives during poll.
- Event
Type - Typed event categories for structured event filtering.
- Message
- Wire format for all messages stored in the chat file and sent over the socket.
- Room
Visibility - Visibility level for a room, controlling who can discover and join it.
- Subscription
Tier - Subscription tier for a user’s relationship with a room.
Functions§
- dm_
room_ id - Compute the deterministic room ID for a DM between two users.
- format_
message_ id - Format a human-readable message ID from a room ID and sequence number.
- is_
dm_ room - Check whether a room ID represents a DM room.
- make_
command - make_dm
- make_
event - make_
join - make_
leave - make_
message - make_
reply - make_
system - parse_
client_ line - Parse a raw line from a client socket. JSON envelope → Message with broker-assigned id/room/ts. Plain text → Message::Message with broker-assigned metadata.
- parse_
mentions - Extract @mentions from message content.
- parse_
message_ id - Parse a human-readable message ID back into
(room_id, seq).