Skip to main content

Crate strata_device

Crate strata_device 

Source
Expand description

Strata Device: Hardware introspection, OS Geolocation/GPS, 14+ physical hardware sensors, unified permissions manager, and fine-grained reactive signals.

Re-exports§

pub use mock::DeviceMockController;
pub use mock::DeviceTelemetrySnapshot;
pub use os_sensors::clear_ip_geolocation_cache;
pub use os_sensors::parse_proc_net_wireless;
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_hinge_angle_in_dir;
pub use os_sensors::probe_linux_iio_imu_in_dir;
pub use os_sensors::probe_linux_iio_pedometer_in_dir;
pub use os_sensors::probe_linux_iio_proximity_in_dir;
pub use os_sensors::probe_nmea_file;
pub use os_sensors::probe_os_ambient_light;
pub use os_sensors::probe_os_ambient_spl;
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_heart_rate;
pub use os_sensors::probe_os_hinge_angle;
pub use os_sensors::probe_os_imu;
pub use os_sensors::probe_os_pedometer;
pub use os_sensors::probe_os_proximity;
pub use os_sensors::probe_os_radio_signal;
pub use os_sensors::refresh_sensors_from_hardware;
pub use os_sensors::register_ambient_spl_provider;
pub use os_sensors::register_heart_rate_provider;
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 permissions::check_permission;
pub use permissions::clear_mock_permissions;
pub use permissions::request_permission;
pub use permissions::set_mock_permission;
pub use permissions::use_permission;
pub use permissions::PermissionKind;
pub use permissions::PermissionStatus;
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_ambient_spl;
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_heart_rate;
pub use signals::use_hinge_angle;
pub use signals::use_imu;
pub use signals::use_network;
pub use signals::use_pedometer;
pub use signals::use_proximity;
pub use signals::use_radio_signal;
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::AmbientSplReading;
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::FoldablePosture;
pub use types::GeolocationInfo;
pub use types::GeolocationSource;
pub use types::GpuBackend;
pub use types::GpuInfo;
pub use types::HeartRateReading;
pub use types::HingeAngleReading;
pub use types::ImuReading;
pub use types::MemoryPressure;
pub use types::NetworkStatus;
pub use types::PedometerReading;
pub use types::ProximityReading;
pub use types::RadioSignalReading;
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.
permissions
Unified cross-platform hardware & OS privacy permission manager with reactive hooks.
prelude
Device telemetry, expanded hardware sensors, and permissions 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.