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//! - [`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;
17#[cfg(target_os = "linux")]
18pub mod linux;
19pub mod remote;
20pub mod smart;
21pub mod snapshot;
22pub mod source;
23pub mod system;
24pub mod view;
25#[cfg(windows)]
26mod windows;
27pub mod worker;
28
29pub use config::Config;
30pub use snapshot::Snapshot;
31pub use source::{DataSource, LocalSource, MIN_POLL_INTERVAL, ProcessSignal, SourceError};