pub struct McpClient<T>{
pub transport: T,
}Fields§
§transport: TImplementations§
Source§impl<T> McpClient<T>
impl<T> McpClient<T>
pub fn new(transport: T) -> Self
pub async fn send(&self, message: JsonRpcMessage) -> Result<JsonRpcMessage>
pub async fn send_resquest( &self, request: JsonRpcRequest, ) -> Result<JsonRpcMessage>
Auto Trait Implementations§
impl<T> Freeze for McpClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for McpClient<T>where
T: RefUnwindSafe,
impl<T> Send for McpClient<T>
impl<T> Sync for McpClient<T>
impl<T> Unpin for McpClient<T>where
T: Unpin,
impl<T> UnwindSafe for McpClient<T>where
T: UnwindSafe,
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