pub trait ActionHandler {
// Required method
fn do_action(&mut self, request: ActionRequest);
}
Expand description
Handles requests from assistive technologies or other clients.
Required Methods§
sourcefn do_action(&mut self, request: ActionRequest)
fn do_action(&mut self, request: ActionRequest)
Perform the requested action. If the requested action is not supported, this method must do nothing.
The thread on which this method is called is platform-dependent. Refer to the platform adapter documentation for more details.
This method may queue the request and handle it asynchronously. This behavior is preferred over blocking, e.g. when dispatching the request to another thread.