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//! [`fill`]: when filesystems will be full.
9//! - [`agent`], [`remote`]: remote monitoring over SSH (`rigtop --agent` and
10//! the [`remote::RemoteSource`] that talks to it).
11//! - [`demo`]: made-up hosts for trying the interface (`--demo`).
12//! - [`snooze`]: alerts silenced for a while, shared by the front-ends.
13//! - [`worker`], [`view`], [`format`]: front-end helpers shared by the TUI
14//! and the GUI (background polling thread, process table logic, units).
15
16pub mod agent;
17pub mod config;
18pub mod demo;
19pub mod fill;
20pub mod format;
21pub mod gpu;
22pub mod hosts;
23// Parsed (and tested) everywhere, used on Windows.
24#[cfg(any(windows, test))]
25mod lhm;
26#[cfg(target_os = "linux")]
27pub mod linux;
28pub mod public_ip;
29pub mod remote;
30pub mod smart;
31pub mod snapshot;
32pub mod snooze;
33pub mod source;
34pub mod system;
35pub mod update;
36pub mod view;
37pub mod widget;
38#[cfg(windows)]
39mod windows;
40pub mod worker;
41
42pub use config::Config;
43pub use snapshot::Snapshot;
44pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};