struct JsAutotypeDriver {
runner: ThreadBoundRunner<RawJsAutotypeDriver>,
}Expand description
Wraps the JavaScript driver in a [ThreadBoundRunner] so it can be used from the Send
futures an [RpcHandler] is required to return.
Fields§
§runner: ThreadBoundRunner<RawJsAutotypeDriver>Implementations§
Source§impl JsAutotypeDriver
impl JsAutotypeDriver
fn new(runner: ThreadBoundRunner<RawJsAutotypeDriver>) -> Self
Sourceasync fn set_autotype_enabled(&self, enabled: bool) -> bool
async fn set_autotype_enabled(&self, enabled: bool) -> bool
Sets the Autotype enabled state, and returns if setting the enabled state was successful or not.
Sourceasync fn set_autotype_keyboard_shortcut(&self, shortcut: Vec<String>) -> bool
async fn set_autotype_keyboard_shortcut(&self, shortcut: Vec<String>) -> bool
Sets the keyboard shortcut used for executing Autotype. Returns if setting the keyboard shortcut was successful or not.
Sourceasync fn list_running_apps(&self) -> Vec<AutotypeRunningApp>
async fn list_running_apps(&self) -> Vec<AutotypeRunningApp>
Retrieves the currently running apps.
Returns a Vec of AutotypeRunningApp. Apps that don’t match the
AutotypeRunningApp model are filtered out.
Auto Trait Implementations§
impl Freeze for JsAutotypeDriver
impl RefUnwindSafe for JsAutotypeDriver
impl Send for JsAutotypeDriver
impl Sync for JsAutotypeDriver
impl Unpin for JsAutotypeDriver
impl UnsafeUnpin for JsAutotypeDriver
impl UnwindSafe for JsAutotypeDriver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more