fidl_fuchsia_hardware_sensors

Trait 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;
}

Required Associated Types§

Required Methods§

Source

fn get_sensors_list(&self) -> Self::GetSensorsListResponseFut

Source

fn activate_sensor(&self, sensor_id: i32) -> Self::ActivateSensorResponseFut

Source

fn deactivate_sensor(&self, sensor_id: i32) -> Self::DeactivateSensorResponseFut

Source

fn configure_sensor_rate( &self, sensor_id: i32, sensor_rate_config: &SensorRateConfig, ) -> Self::ConfigureSensorRateResponseFut

Implementors§