Skip to main content

rigtop_core/
lib.rs

1//! Data collection core shared by the rigtop TUI and GUI.
2//!
3//! - [`snapshot`]: the serializable measurement types exchanged between data
4//!   sources and front-ends (also the wire format for remote monitoring).
5//! - [`source`]: the [`DataSource`] trait and the [`LocalSource`] implementation.
6//! - [`config`]: user configuration (sensor labels, SMART directory).
7//! - [`system`], [`gpu`], [`smart`], `linux`: the individual collectors.
8//! - [`agent`], [`remote`]: remote monitoring over SSH (`rigtop --agent` and
9//!   the [`remote::RemoteSource`] that talks to it).
10//! - [`demo`]: made-up hosts for trying the interface (`--demo`).
11//! - [`worker`], [`view`], [`format`]: front-end helpers shared by the TUI
12//!   and the GUI (background polling thread, process table logic, units).
13
14pub mod agent;
15pub mod config;
16pub mod demo;
17pub mod format;
18pub mod gpu;
19pub mod hosts;
20// Parsed (and tested) everywhere, used on Windows.
21#[cfg(any(windows, test))]
22mod lhm;
23#[cfg(target_os = "linux")]
24pub mod linux;
25pub mod remote;
26pub mod smart;
27pub mod snapshot;
28pub mod source;
29pub mod system;
30pub mod view;
31pub mod widget;
32#[cfg(windows)]
33mod windows;
34pub mod worker;
35
36pub use config::Config;
37pub use snapshot::Snapshot;
38pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};