fidl_fuchsia_hardware_sensorsTrait DriverProxyInterface
Source pub trait DriverProxyInterface: Send + Sync {
type GetSensorsListResponseFut: Future<Output = Result<Vec<SensorInfo>, Error>> + Send;
type ActivateSensorResponseFut: Future<Output = Result<DriverActivateSensorResult, Error>> + Send;
type DeactivateSensorResponseFut: Future<Output = Result<DriverDeactivateSensorResult, Error>> + Send;
type ConfigureSensorRateResponseFut: Future<Output = Result<DriverConfigureSensorRateResult, Error>> + Send;
// Required methods
fn get_sensors_list(&self) -> Self::GetSensorsListResponseFut;
fn activate_sensor(&self, sensor_id: i32) -> Self::ActivateSensorResponseFut;
fn deactivate_sensor(
&self,
sensor_id: i32,
) -> Self::DeactivateSensorResponseFut;
fn configure_sensor_rate(
&self,
sensor_id: i32,
sensor_rate_config: &SensorRateConfig,
) -> Self::ConfigureSensorRateResponseFut;
}