pub struct Client;Expand description
The MCP client role - connects to MCP servers to access tools and resources.
Implementations§
Trait Implementations§
Source§impl<Run> ConnectTo<Client> for McpServer<Client, Run>where
Run: RunWithConnectionTo<Client> + 'static,
impl<Run> ConnectTo<Client> for McpServer<Client, Run>where
Run: RunWithConnectionTo<Client> + 'static,
Source§impl HasPeer<Client> for Client
impl HasPeer<Client> for Client
Source§fn remote_style(&self, _peer: Client) -> RemoteStyle
fn remote_style(&self, _peer: Client) -> RemoteStyle
Returns the remote style for sending to this peer.
Source§impl Ord for Client
impl Ord for Client
Source§impl PartialOrd for Client
impl PartialOrd for Client
Source§impl Role for Client
impl Role for Client
Source§type Counterpart = Server
type Counterpart = Server
The role that this endpoint connects to. Read more
Source§fn counterpart(&self) -> Self::Counterpart
fn counterpart(&self) -> Self::Counterpart
Returns the counterpart role.
Source§async fn default_handle_dispatch_from(
&self,
message: Dispatch,
_connection: ConnectionTo<Self>,
) -> Result<Handled<Dispatch>, Error>
async fn default_handle_dispatch_from( &self, message: Dispatch, _connection: ConnectionTo<Self>, ) -> Result<Handled<Dispatch>, Error>
Method invoked when there is no defined message handler.
impl Copy for Client
impl Eq for Client
impl StructuralPartialEq for Client
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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