Crate tuiserial_core

Crate tuiserial_core 

Source
Expand description

Core data models and types for tuiserial

This crate provides the fundamental data structures, enums, and state management types used throughout the tuiserial application.

§Architecture

The core is organized into modular components:

  • types: Basic type definitions and enums (DisplayMode, TxMode, Parity, etc.)
  • notification: Notification system for user messages
  • log: Log entries and message log for serial communication
  • config: Serial port configuration
  • state: Main application state management
  • i18n: Internationalization support

Re-exports§

pub use config::SerialConfig;
pub use log::LogDirection;
pub use log::LogEntry;
pub use log::MessageLog;
pub use log::MAX_LOG_LINES;
pub use menu_def::MenuAction;
pub use menu_def::MenuBar;
pub use menu_def::MENU_BAR;
pub use notification::Notification;
pub use notification::NotificationLevel;
pub use state::AppState;
pub use types::AppendMode;
pub use types::DisplayMode;
pub use types::FlowControl;
pub use types::FocusedField;
pub use types::Language;
pub use types::MenuState;
pub use types::Parity;
pub use types::TxMode;
pub use chrono;
pub use ratatui;
pub use serde;
pub use serde_json;

Modules§

config
Serial port configuration types
i18n
Internationalization support for tuiserial
log
Log entry and message log functionality
menu_def
Menu definition and structure
notification
Notification types and functionality
state
Application state management
types
Basic types and enums for tuiserial