pub struct ChannelSamplingClient { /* private fields */ }Expand description
Channel-based sampling client implementation.
Sends requests through a channel to be forwarded to the MCP client.
Implementations§
Trait Implementations§
Source§impl Clone for ChannelSamplingClient
impl Clone for ChannelSamplingClient
Source§fn clone(&self) -> ChannelSamplingClient
fn clone(&self) -> ChannelSamplingClient
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 SamplingClient for ChannelSamplingClient
impl SamplingClient for ChannelSamplingClient
Source§fn create_message(
&self,
request: CreateMessageRequest,
) -> Pin<Box<dyn Future<Output = McpResult<CreateMessageResult>> + Send + '_>>
fn create_message( &self, request: CreateMessageRequest, ) -> Pin<Box<dyn Future<Output = McpResult<CreateMessageResult>> + Send + '_>>
Send a sampling/createMessage request to the client.
Auto Trait Implementations§
impl Freeze for ChannelSamplingClient
impl RefUnwindSafe for ChannelSamplingClient
impl Send for ChannelSamplingClient
impl Sync for ChannelSamplingClient
impl Unpin for ChannelSamplingClient
impl UnsafeUnpin for ChannelSamplingClient
impl UnwindSafe for ChannelSamplingClient
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