Skip to main content

Crate rigtop_core

Crate rigtop_core 

Source
Expand description

Data collection core shared by the rigtop TUI and GUI.

  • snapshot: the serializable measurement types exchanged between data sources and front-ends (also the wire format for remote monitoring).
  • source: the DataSource trait and the LocalSource implementation.
  • config: user configuration (sensor labels, SMART directory).
  • system, gpu, smart, linux: the individual collectors.
  • worker, view, [format]: front-end helpers shared by the TUI and the GUI (background polling thread, process table logic, units).

Re-exports§

pub use config::Config;
pub use snapshot::Snapshot;
pub use source::DataSource;
pub use source::LocalSource;
pub use source::MIN_POLL_INTERVAL;
pub use source::ProcessSignal;
pub use source::SourceError;

Modules§

config
User configuration (config.toml).
format
Compact human-readable formatting for narrow terminal cells.
gpu
NVIDIA GPU statistics via NVML.
linux
Linux-specific readers for /sys and /proc.
smart
SMART health from smartctl JSON files.
snapshot
Serializable snapshot of everything rigtop displays.
source
Data sources: anything that can produce Snapshots.
system
Portable statistics via the sysinfo crate: CPU load, memory, processes, network traffic and filesystem capacity.
view
Front-end helpers shared by the TUI and the GUI: graph history, process table sorting/filtering joined with GPU usage, and small naming helpers.
worker
Background thread that owns the data source.