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//! - [`worker`], [`view`], [`format`]: front-end helpers shared by the TUI
11//! and the GUI (background polling thread, process table logic, units).
12
13pub mod agent;
14pub mod config;
15pub mod format;
16pub mod gpu;
17pub mod hosts;
18#[cfg(target_os = "linux")]
19pub mod linux;
20pub mod remote;
21pub mod smart;
22pub mod snapshot;
23pub mod source;
24pub mod system;
25pub mod view;
26#[cfg(windows)]
27mod windows;
28pub mod worker;
29
30pub use config::Config;
31pub use snapshot::Snapshot;
32pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};