pub trait Agent{
// Provided method
fn execute(&mut self, token: &Token) -> InputResult<()> { ... }
}
Provided Methods§
sourcefn execute(&mut self, token: &Token) -> InputResult<()>
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