InputProvider

Trait InputProvider 

Source
pub trait InputProvider: Send + Sync {
    // Required methods
    fn type_text<'life0, 'life1, 'async_trait>(
        &'life0 self,
        text: &'life1 str,
        delay_ms: Option<u32>,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn press_key<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 str,
        modifiers: Vec<KeyModifier>,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn key_combo<'life0, 'life1, 'async_trait>(
        &'life0 self,
        keys: Vec<&'life1 str>,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn move_mouse<'life0, 'async_trait>(
        &'life0 self,
        x: i32,
        y: i32,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn click<'life0, 'life1, 'async_trait>(
        &'life0 self,
        button: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn double_click<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn scroll<'life0, 'async_trait>(
        &'life0 self,
        dx: i32,
        dy: i32,
    ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Input provider trait

Required Methods§

Source

fn type_text<'life0, 'life1, 'async_trait>( &'life0 self, text: &'life1 str, delay_ms: Option<u32>, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Type text

Source

fn press_key<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str, modifiers: Vec<KeyModifier>, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Press a key

Source

fn key_combo<'life0, 'life1, 'async_trait>( &'life0 self, keys: Vec<&'life1 str>, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Press a key combination

Source

fn move_mouse<'life0, 'async_trait>( &'life0 self, x: i32, y: i32, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Move mouse

Source

fn click<'life0, 'life1, 'async_trait>( &'life0 self, button: &'life1 str, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Click mouse

Source

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

Double click

Source

fn scroll<'life0, 'async_trait>( &'life0 self, dx: i32, dy: i32, ) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Scroll

Implementors§