fidl_fuchsia_sensors

Trait ManagerProxyInterface

Source
pub trait ManagerProxyInterface: Send + Sync {
    type ConfigurePlaybackResponseFut: Future<Output = Result<ManagerConfigurePlaybackResult, Error>> + Send;
    type GetSensorsListResponseFut: Future<Output = Result<Vec<SensorInfo>, Error>> + Send;
    type ConfigureSensorRatesResponseFut: Future<Output = Result<ManagerConfigureSensorRatesResult, Error>> + Send;
    type ActivateResponseFut: Future<Output = Result<ManagerActivateResult, Error>> + Send;
    type DeactivateResponseFut: Future<Output = Result<ManagerDeactivateResult, Error>> + Send;

    // Required methods
    fn configure_playback(
        &self,
        source_config: &PlaybackSourceConfig,
    ) -> Self::ConfigurePlaybackResponseFut;
    fn get_sensors_list(&self) -> Self::GetSensorsListResponseFut;
    fn configure_sensor_rates(
        &self,
        id: i32,
        sensor_rate_config: &SensorRateConfig,
    ) -> Self::ConfigureSensorRatesResponseFut;
    fn activate(&self, id: i32) -> Self::ActivateResponseFut;
    fn deactivate(&self, id: i32) -> Self::DeactivateResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§