pub trait ElicitationHandler:
Send
+ Sync
+ 'static {
// Required method
fn handle<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
request_id: RequestId,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = ElicitationResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Handler for elicitation.requested broadcasts.
When unset, requestElicitation: false goes on the wire.
Required Methods§
Sourcefn handle<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
request_id: RequestId,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = ElicitationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
session_id: SessionId,
request_id: RequestId,
request: ElicitationRequest,
) -> Pin<Box<dyn Future<Output = ElicitationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Respond to an elicitation prompt (form, URL confirm, etc.).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".