pub struct AutoDeclineElicitationHandler;Expand description
Default handler that declines all elicitation requests.
Used when no custom handler is configured, preserving backward-compatible
behavior identical to rmcp’s () ClientHandler default.
Trait Implementations§
Source§impl Clone for AutoDeclineElicitationHandler
impl Clone for AutoDeclineElicitationHandler
Source§fn clone(&self) -> AutoDeclineElicitationHandler
fn clone(&self) -> AutoDeclineElicitationHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ElicitationHandler for AutoDeclineElicitationHandler
impl ElicitationHandler for AutoDeclineElicitationHandler
Source§fn handle_form_elicitation<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_schema: &'life2 ElicitationSchema,
_metadata: Option<&'life3 Value>,
) -> Pin<Box<dyn Future<Output = Result<CreateElicitationResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn handle_form_elicitation<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_schema: &'life2 ElicitationSchema,
_metadata: Option<&'life3 Value>,
) -> Pin<Box<dyn Future<Output = Result<CreateElicitationResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Handle a form-based elicitation request. Read more
Source§fn handle_url_elicitation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_url: &'life2 str,
_elicitation_id: &'life3 str,
_metadata: Option<&'life4 Value>,
) -> Pin<Box<dyn Future<Output = Result<CreateElicitationResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn handle_url_elicitation<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_message: &'life1 str,
_url: &'life2 str,
_elicitation_id: &'life3 str,
_metadata: Option<&'life4 Value>,
) -> Pin<Box<dyn Future<Output = Result<CreateElicitationResult, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Handle a URL-based elicitation request. Read more
impl Copy for AutoDeclineElicitationHandler
Auto Trait Implementations§
impl Freeze for AutoDeclineElicitationHandler
impl RefUnwindSafe for AutoDeclineElicitationHandler
impl Send for AutoDeclineElicitationHandler
impl Sync for AutoDeclineElicitationHandler
impl Unpin for AutoDeclineElicitationHandler
impl UnsafeUnpin for AutoDeclineElicitationHandler
impl UnwindSafe for AutoDeclineElicitationHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request