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//!   [`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//! - [`worker`], [`view`], [`format`]: front-end helpers shared by the TUI
13//!   and the GUI (background polling thread, process table logic, units).
14
15pub mod agent;
16pub mod config;
17pub mod demo;
18pub mod fill;
19pub mod format;
20pub mod gpu;
21pub mod hosts;
22// Parsed (and tested) everywhere, used on Windows.
23#[cfg(any(windows, test))]
24mod lhm;
25#[cfg(target_os = "linux")]
26pub mod linux;
27pub mod remote;
28pub mod smart;
29pub mod snapshot;
30pub mod source;
31pub mod system;
32pub mod update;
33pub mod view;
34pub mod widget;
35#[cfg(windows)]
36mod windows;
37pub mod worker;
38
39pub use config::Config;
40pub use snapshot::Snapshot;
41pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};