pub trait ControlMode: Send + Sync {
    // Required methods
    fn handle_event(&self, event: GamepadEvent);
    fn proc<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mode(&self) -> &str;
    fn submode(&self) -> String;
}

Required Methods§

source

fn handle_event(&self, event: GamepadEvent)

source

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

source

fn mode(&self) -> &str

source

fn submode(&self) -> String

Implementations on Foreign Types§

source§

impl<T: ControlMode + ?Sized> ControlMode for Box<T>where Box<T>: Send + Sync,

source§

fn handle_event(&self, event: GamepadEvent)

source§

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

source§

fn mode(&self) -> &str

source§

fn submode(&self) -> String

Implementors§