Skip to main content

AndroidAutoSensorTrait

Trait AndroidAutoSensorTrait 

Source
pub trait AndroidAutoSensorTrait {
    // Required methods
    fn get_supported_sensors(&self) -> &SensorInformation;
    fn start_sensor<'life0, 'async_trait>(
        &'life0 self,
        stype: Enum,
    ) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

This trait is implemented by users that support navigation indicators

Required Methods§

Source

fn get_supported_sensors(&self) -> &SensorInformation

Returns the types of sensors supported

Source

fn start_sensor<'life0, 'async_trait>( &'life0 self, stype: Enum, ) -> Pin<Box<dyn Future<Output = Result<(), ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start the indicated sensor

Implementors§