pub struct MockElicitationProvider;Expand description
Default console-based elicitation provider for demonstration
Trait Implementations§
Source§impl ElicitationProvider for MockElicitationProvider
impl ElicitationProvider for MockElicitationProvider
Source§fn elicit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ElicitCreateRequest,
) -> Pin<Box<dyn Future<Output = McpResult<ElicitResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn elicit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ElicitCreateRequest,
) -> Pin<Box<dyn Future<Output = McpResult<ElicitResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Present an elicitation request to the user and return their response
Source§fn can_handle(&self, _request: &ElicitCreateRequest) -> bool
fn can_handle(&self, _request: &ElicitCreateRequest) -> bool
Check if this provider can handle a specific elicitation schema
Auto Trait Implementations§
impl Freeze for MockElicitationProvider
impl RefUnwindSafe for MockElicitationProvider
impl Send for MockElicitationProvider
impl Sync for MockElicitationProvider
impl Unpin for MockElicitationProvider
impl UnwindSafe for MockElicitationProvider
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.