Skip to main content

Crate strata_device

Crate strata_device 

Source
Expand description

Strata Device: Hardware introspection, device telemetry, and reactive hardware signals.

Provides reactive hooks for battery state, thermals, network, display geometry, safe area insets, and system-wide memory pressure eviction callbacks.

Re-exports§

pub use mock::DeviceMockController;
pub use mock::DeviceTelemetrySnapshot;
pub use os_telemetry::probe_hardware_telemetry;
pub use os_telemetry::probe_os_battery;
pub use os_telemetry::probe_os_network;
pub use os_telemetry::probe_os_thermal;
pub use os_telemetry::refresh_from_hardware;
pub use signals::clear_memory_pressure_listeners;
pub use signals::notify_memory_pressure;
pub use signals::on_memory_pressure;
pub use signals::unregister_memory_pressure;
pub use signals::use_battery;
pub use signals::use_display_refresh;
pub use signals::use_network;
pub use signals::use_screen;
pub use signals::use_thermal;
pub use types::BatteryInfo;
pub use types::BatteryState;
pub use types::CellularGen;
pub use types::ColorGamut;
pub use types::ConnectionType;
pub use types::DisplayRefreshInfo;
pub use types::GpuBackend;
pub use types::GpuInfo;
pub use types::MemoryPressure;
pub use types::NetworkStatus;
pub use types::SafeAreaInsets;
pub use types::ScreenGeometry;
pub use types::ThermalState;

Modules§

mock
DeviceMockController: Thread-safe hardware simulation controller for tests, CI, and emulators.
os_telemetry
OS-native hardware telemetry probes for Linux sysfs, macOS, and Windows.
prelude
Device telemetry prelude module.
signals
Fine-grained reactive telemetry hooks and memory pressure callback registry.
types
Data models and enums representing native device telemetry and hardware states.