struct AutotypeListRunningAppsHandler {
driver: JsAutotypeDriver,
}Expand description
An [RpcHandler] that lists running applications through a RawJsAutotypeDriver.
Only requests from the desktop renderer are answered; any other source gets an empty list
without the driver being asked to enumerate anything. See from_renderer.
Fields§
§driver: JsAutotypeDriverImplementations§
Source§impl AutotypeListRunningAppsHandler
impl AutotypeListRunningAppsHandler
fn new(driver: JsAutotypeDriver) -> Self
Trait Implementations§
Source§impl RpcHandler for AutotypeListRunningAppsHandler
impl RpcHandler for AutotypeListRunningAppsHandler
Source§type Request = AutotypeListRunningAppsRequest
type Request = AutotypeListRunningAppsRequest
The request type that this handler can process.
Source§async fn handle(
&self,
_: Self::Request,
info: RpcRequestInfo,
) -> AutotypeListRunningAppsResponse
async fn handle( &self, _: Self::Request, info: RpcRequestInfo, ) -> AutotypeListRunningAppsResponse
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 AutotypeListRunningAppsHandler
impl RefUnwindSafe for AutotypeListRunningAppsHandler
impl Send for AutotypeListRunningAppsHandler
impl Sync for AutotypeListRunningAppsHandler
impl Unpin for AutotypeListRunningAppsHandler
impl UnsafeUnpin for AutotypeListRunningAppsHandler
impl UnwindSafe for AutotypeListRunningAppsHandler
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