Skip to main content

AndroidAutoNavigationTrait

Trait AndroidAutoNavigationTrait 

Source
pub trait AndroidAutoNavigationTrait: AndroidAutoMainTrait {
    // Required methods
    fn turn_indication<'life0, 'async_trait>(
        &'life0 self,
        m: NavigationTurnEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn distance_indication<'life0, 'async_trait>(
        &'life0 self,
        m: NavigationDistanceEvent,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn nagivation_status<'life0, 'async_trait>(
        &'life0 self,
        m: NavigationStatus,
    ) -> Pin<Box<dyn Future<Output = ()> + 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 turn_indication<'life0, 'async_trait>( &'life0 self, m: NavigationTurnEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A turn indication update

Source

fn distance_indication<'life0, 'async_trait>( &'life0 self, m: NavigationDistanceEvent, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A distance indication update

Source

fn nagivation_status<'life0, 'async_trait>( &'life0 self, m: NavigationStatus, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A status update

Implementors§