Expand description
Application state and data structures.
This module contains the core data structures for managing the application state, including user data, messages, message history, UI state, and connection status.
§Key Types
App- Main application stateConversationView- Per-peer message history with lazy loadingTab- UI tab navigationUser- User informationMessage- Chat message dataSecret- Secure string wrapper with automatic zeroization
§Message History
The module implements efficient message history management through ConversationView,
which uses a VecDeque for O(1) prepending when loading older messages. This enables
infinite scrolling with lazy loading from the persistent SQLite storage.
Structs§
- Admin
Form - Form state for Admin actions.
- App
- Main application state.
- Certificate
- Certificate information for a user.
- Conversation
View - Manages a conversation with message history.
- Detailed
User - Detailed user information from admin user list.
- Engine
Status - Engine status information from cryptic_engine.
- Message
- Represents a chat message.
- Secret
- Secure string wrapper with automatic memory zeroization.
- Session
Detail - Details about a specific Double Ratchet session.
- System
Message - A system message with display timing information.
- User
- Represents a user in the messaging system.
- User
Metadata - Optional metadata for a user. Contains arbitrary key-value pairs like team, name, note, etc.
Enums§
- Admin
Field - Identifies active admin form field.
- Admin
Mode - Admin view mode
- AppScreen
- Application screen state.
- Tab
- UI tab navigation.