Trait arci::Gamepad

source ·
pub trait Gamepad: Send + Sync {
    // Required methods
    fn next_event<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = GamepadEvent> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn stop(&self);
}

Required Methods§

source

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

source

fn stop(&self)

Implementations on Foreign Types§

source§

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

source§

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

source§

fn stop(&self)

source§

impl<T: Gamepad + ?Sized> Gamepad for Arc<T>
where Arc<T>: Send + Sync,

source§

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

source§

fn stop(&self)

Implementors§

source§

impl Gamepad for DummyGamepad

source§

impl<T> Gamepad for Lazy<'_, T>
where T: Gamepad,