pub struct McpSessionManager { /* private fields */ }Expand description
Manages the MCP client session lifecycle.
Implementations§
Source§impl McpSessionManager
impl McpSessionManager
Sourcepub fn new(params: McpConnectionParams) -> Self
pub fn new(params: McpConnectionParams) -> Self
Create a new MCP session manager with the given connection params.
Sourcepub fn params(&self) -> &McpConnectionParams
pub fn params(&self) -> &McpConnectionParams
Get the connection parameters.
Sourcepub async fn list_tools(&self) -> Result<Vec<McpToolInfo>, McpError>
pub async fn list_tools(&self) -> Result<Vec<McpToolInfo>, McpError>
List available tools from the MCP server. Stub: returns empty list. Full implementation awaits MCP client integration.
Auto Trait Implementations§
impl Freeze for McpSessionManager
impl RefUnwindSafe for McpSessionManager
impl Send for McpSessionManager
impl Sync for McpSessionManager
impl Unpin for McpSessionManager
impl UnwindSafe for McpSessionManager
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