struct AutotypeGetCredentialsHandler {
driver: JsAutotypeRenderDriver,
}Expand description
An [RpcHandler] that finds the credentials to autotype through a
RawJsAutotypeRenderDriver.
Only requests from the desktop main process are answered; any other source (including
native-messaging peers that main forwards to the render process) gets no match without the
driver being called, so it can’t request credentials. See from_source.
Fields§
§driver: JsAutotypeRenderDriverImplementations§
Source§impl AutotypeGetCredentialsHandler
impl AutotypeGetCredentialsHandler
fn new(driver: JsAutotypeRenderDriver) -> Self
Trait Implementations§
Source§impl RpcHandler for AutotypeGetCredentialsHandler
impl RpcHandler for AutotypeGetCredentialsHandler
Source§type Request = AutotypeGetCredentialsRequest
type Request = AutotypeGetCredentialsRequest
The request type that this handler can process.
Source§async fn handle(
&self,
request: Self::Request,
info: RpcRequestInfo,
) -> AutotypeGetCredentialsResponse
async fn handle( &self, request: Self::Request, info: RpcRequestInfo, ) -> AutotypeGetCredentialsResponse
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 AutotypeGetCredentialsHandler
impl RefUnwindSafe for AutotypeGetCredentialsHandler
impl Send for AutotypeGetCredentialsHandler
impl Sync for AutotypeGetCredentialsHandler
impl Unpin for AutotypeGetCredentialsHandler
impl UnsafeUnpin for AutotypeGetCredentialsHandler
impl UnwindSafe for AutotypeGetCredentialsHandler
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