pub struct SamplingHandler;
Expand description
Handler for sampling requests
Implementations§
Source§impl SamplingHandler
impl SamplingHandler
Sourcepub async fn handle_create_message(
_params: Option<Value>,
) -> McpResult<CreateMessageResult>
pub async fn handle_create_message( _params: Option<Value>, ) -> McpResult<CreateMessageResult>
Handle sampling/createMessage request
Auto Trait Implementations§
impl Freeze for SamplingHandler
impl RefUnwindSafe for SamplingHandler
impl Send for SamplingHandler
impl Sync for SamplingHandler
impl Unpin for SamplingHandler
impl UnwindSafe for SamplingHandler
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