struct AutotypeSetKeyboardShortcutHandler {
driver: JsAutotypeDriver,
}Expand description
An [RpcHandler] that applies the requested shortcut through a RawJsAutotypeDriver.
Only requests from the desktop renderer are applied; any other source is refused with
success: false before the shortcut reaches the driver. See from_renderer.
Fields§
§driver: JsAutotypeDriverImplementations§
Source§impl AutotypeSetKeyboardShortcutHandler
impl AutotypeSetKeyboardShortcutHandler
fn new(driver: JsAutotypeDriver) -> Self
Trait Implementations§
Source§impl RpcHandler for AutotypeSetKeyboardShortcutHandler
impl RpcHandler for AutotypeSetKeyboardShortcutHandler
Source§type Request = AutotypeSetKeyboardShortcutRequest
type Request = AutotypeSetKeyboardShortcutRequest
The request type that this handler can process.
Source§async fn handle(
&self,
request: Self::Request,
info: RpcRequestInfo,
) -> AutotypeSetKeyboardShortcutResponse
async fn handle( &self, request: Self::Request, info: RpcRequestInfo, ) -> AutotypeSetKeyboardShortcutResponse
Handle the request. Any errors that occur should be defined as part of the
RpcRequest
type. info describes where the request came from, see [RpcRequestInfo].Auto Trait Implementations§
impl Freeze for AutotypeSetKeyboardShortcutHandler
impl RefUnwindSafe for AutotypeSetKeyboardShortcutHandler
impl Send for AutotypeSetKeyboardShortcutHandler
impl Sync for AutotypeSetKeyboardShortcutHandler
impl Unpin for AutotypeSetKeyboardShortcutHandler
impl UnsafeUnpin for AutotypeSetKeyboardShortcutHandler
impl UnwindSafe for AutotypeSetKeyboardShortcutHandler
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