Trait enigo::agent::Agent

source ·
pub trait Agent
where Self: Keyboard + Mouse,
{ // Provided method fn execute(&mut self, token: &Token) -> InputResult<()> { ... } }

Provided Methods§

source

fn execute(&mut self, token: &Token) -> InputResult<()>

Execute the action associated with the token. A Token::Text will enter text, a Token::Scroll will scroll and so forth. Have a look at the documentation of the Token enum for more information.

§Errors

Same as the individual functions. Have a look at InputResult for a list of possible errors

Implementors§