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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn double_click<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = IntegrationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: '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,
Double click