Skip to main content

Module wasm

Module wasm 

Source
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ยง

AutotypeListRunningAppsHandler ๐Ÿ”’
An [RpcHandler] that lists running applications through a RawJsAutotypeDriver.
AutotypeListRunningAppsRequest
A request asking the receiving client for the applications that are currently running.
AutotypeListRunningAppsResponse
A response to an AutotypeListRunningAppsRequest.
AutotypeRunningApp
A running application.
AutotypeSetEnabledHandler ๐Ÿ”’
An [RpcHandler] that applies the requested state through a RawJsAutotypeDriver.
AutotypeSetEnabledRequest
A request asking the receiving client to enable or disable Autotype.
AutotypeSetEnabledResponse
A response to an AutotypeSetEnabledRequest.
AutotypeSetKeyboardShortcutHandler ๐Ÿ”’
An [RpcHandler] that applies the requested shortcut through a RawJsAutotypeDriver.
AutotypeSetKeyboardShortcutRequest
A request asking the receiving client to change the keyboard shortcut Autotype is triggered by.
AutotypeSetKeyboardShortcutResponse
A response to an AutotypeSetKeyboardShortcutRequest.
JsAutotypeDriver ๐Ÿ”’
Wraps the JavaScript driver in a [ThreadBoundRunner] so it can be used from the Send futures an [RpcHandler] is required to return.
RawJsAutotypeDriver
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 AutotypeSetEnabledRequest to the desktop main process and reports whether the requested change was successful.
autotype_request_set_keyboard_shortcut
Sends an AutotypeSetKeyboardShortcutRequest to 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.