Skip to main content

Crate linsight_core

Crate linsight_core 

Source

Re-exports§

pub use atomic_write::atomic_write_json;
pub use error::CoreError;
pub use error::CoreResult;
pub use hardware::HardwareCategory;
pub use hardware::HardwareDevice;
pub use hardware::HardwareDeviceKey;
pub use hardware::KeyError;
pub use hardware::NICKNAME_MAX_CHARS;
pub use hardware::NicknameError;
pub use hardware::compute_device_label;
pub use hardware::parse_sysfs_pci_id;
pub use hardware::validate_nickname;
pub use paths::history_db_path;
pub use time::parse_duration_dhm;
pub use types::SnapshotCache;
pub use types::*;

Modules§

atomic_write
Atomic JSON file writes shared by every on-disk config the project maintains (preferences.json, hardware.json, per-dashboard files under dashboards/).
error
hardware
paths
Shared filesystem-path helpers.
time
Shared time/duration utilities.
types

Constants§

DASHBOARD_SCHEMA_VERSION
Schema version embedded in saved dashboard JSON. Bump on any incompatible change to the on-disk layout format.
STATIC_TAG
Sensor tag marking a value as effectively constant for the process lifetime (e.g. total VRAM / RAM capacity). The daemon’s scheduler samples a STATIC_TAG sensor once per subscription instead of polling it, and the GUI both omits its trend chart and renders it as a rounded whole-GB capacity rather than a fractional binary size. Plugins opt in by pushing this string into a sensor’s tags.