pub trait InstallationConfirmationHandler:
Send
+ Sync
+ 'static {
// Required method
fn confirm<'life0, 'async_trait>(
&'life0 self,
request: InstallationConfirmationRequest,
context: InstallationConfirmationContext,
) -> Pin<Box<dyn Future<Output = Result<InstallationDecision>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Collects a fresh human decision for the complete review on its original connection.
Match the request’s operation_id and policy_session_id against the exact
action registered by the host before displaying it. Never infer the originating
action from a current session, server name or global pending slot. Refuse
unknown actions or incomplete reviews.
The SDK echoes the original challenge and fingerprint; the handler returns only the decision. Cancellation drops the handler future, so any separately spawned UI work must also observe the supplied context.
This experimental callback does not imply that the connected runtime supports installation, removal or activation.
Required Methods§
Sourcefn confirm<'life0, 'async_trait>(
&'life0 self,
request: InstallationConfirmationRequest,
context: InstallationConfirmationContext,
) -> Pin<Box<dyn Future<Output = Result<InstallationDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn confirm<'life0, 'async_trait>(
&'life0 self,
request: InstallationConfirmationRequest,
context: InstallationConfirmationContext,
) -> Pin<Box<dyn Future<Output = Result<InstallationDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Review this operation and return an explicit decision, or an error to refuse it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".