Expand description
Strata Device: Hardware introspection, OS Geolocation/GPS, hardware sensors, and reactive signals.
Provides reactive hooks for geolocation (use_geolocation), compass (use_compass),
6-DoF IMU (use_imu), barometer (use_barometer), ambient light (use_ambient_light),
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_sensors::clear_ip_geolocation_cache;pub use os_sensors::probe_linux_iio_ambient_light_in_dir;pub use os_sensors::probe_linux_iio_barometer_in_dir;pub use os_sensors::probe_linux_iio_compass_in_dir;pub use os_sensors::probe_linux_iio_imu_in_dir;pub use os_sensors::probe_nmea_file;pub use os_sensors::probe_os_ambient_light;pub use os_sensors::probe_os_barometer;pub use os_sensors::probe_os_compass;pub use os_sensors::probe_os_geolocation;pub use os_sensors::probe_os_geolocation_async;pub use os_sensors::probe_os_imu;pub use os_sensors::refresh_sensors_from_hardware;pub use os_sensors::register_web_api_geolocation_provider;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::poll_geolocation_updates;pub use signals::request_geolocation_refresh_async;pub use signals::unregister_memory_pressure;pub use signals::use_ambient_light;pub use signals::use_barometer;pub use signals::use_battery;pub use signals::use_compass;pub use signals::use_display_refresh;pub use signals::use_geolocation;pub use signals::use_geolocation_with_options;pub use signals::use_imu;pub use signals::use_network;pub use signals::use_screen;pub use signals::use_thermal;pub use types::isa_pressure_altitude_m;pub use types::lux_to_daylight_factor;pub use types::AmbientLightReading;pub use types::BarometerReading;pub use types::BatteryInfo;pub use types::BatteryState;pub use types::CellularGen;pub use types::ColorGamut;pub use types::CompassReading;pub use types::ConnectionType;pub use types::DisplayRefreshInfo;pub use types::GeolocationInfo;pub use types::GeolocationSource;pub use types::GpuBackend;pub use types::GpuInfo;pub use types::ImuReading;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_
sensors - Cross-platform OS Geolocation/GPS and Hardware Sensor probes.
- os_
telemetry - OS-native hardware telemetry probes for Linux sysfs, macOS, and Windows.
- prelude
- Device telemetry and hardware sensor prelude module.
- signals
- Fine-grained reactive telemetry & sensor hooks and memory pressure callback registry.
- types
- Data models and enums representing native device telemetry and hardware states.