Expand description
Wasm support module for autotype.
WASM bindings for the autotype IPC requests, exposed to the clients through
@bitwarden/sdk-internal.
The AutotypeDriver interface is implemented by the user of this crate (for
example, within the Bitwarden desktop app).
Structsยง
- Autotype
List ๐Running Apps Handler - An [
RpcHandler] that lists running applications through aRawJsAutotypeDriver. - Autotype
List Running Apps Request - A request asking the receiving client for the applications that are currently running.
- Autotype
List Running Apps Response - A response to an
AutotypeListRunningAppsRequest. - Autotype
Running App - A running application.
- Autotype
SetEnabled ๐Handler - An [
RpcHandler] that applies the requested state through aRawJsAutotypeDriver. - Autotype
SetEnabled Request - A request asking the receiving client to enable or disable Autotype.
- Autotype
SetEnabled Response - A response to an
AutotypeSetEnabledRequest. - Autotype
SetKeyboard ๐Shortcut Handler - An [
RpcHandler] that applies the requested shortcut through aRawJsAutotypeDriver. - Autotype
SetKeyboard Shortcut Request - A request asking the receiving client to change the keyboard shortcut Autotype is triggered by.
- Autotype
SetKeyboard Shortcut Response - A response to an
AutotypeSetKeyboardShortcutRequest. - JsAutotype
Driver ๐ - Wraps the JavaScript driver in a [
ThreadBoundRunner] so it can be used from theSendfutures an [RpcHandler] is required to return. - RawJs
Autotype Driver - JavaScript implementation of the various Autotype operations.
Functionsยง
- autotype_
request_ list_ running_ apps - Asks the desktop main process which applications are currently running.
- autotype_
request_ set_ enabled - Sends an
AutotypeSetEnabledRequestto the desktop main process and reports whether the requested change was successful. - autotype_
request_ set_ keyboard_ shortcut - Sends an
AutotypeSetKeyboardShortcutRequestto the desktop main process and reports whether the requested shortcut was applied. - from_
renderer ๐ - Determines if a request came from the desktop render process.
- register_
autotype_ handlers - This registers the Autotype handlers so the client responds to Autotype requests through
the
RawJsAutotypeDriver.