pub struct McpContext { /* private fields */ }Expand description
Context about the ACP and MCP connection available to an MCP server.
Implementations§
Source§impl McpContext
impl McpContext
Sourcepub fn connection_cx(&self) -> JrConnectionCx
pub fn connection_cx(&self) -> JrConnectionCx
The ACP connection context, which can be used to send ACP requests and notifications to your successor.
Trait Implementations§
Source§impl Clone for McpContext
impl Clone for McpContext
Source§fn clone(&self) -> McpContext
fn clone(&self) -> McpContext
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 moreAuto Trait Implementations§
impl Freeze for McpContext
impl !RefUnwindSafe for McpContext
impl Send for McpContext
impl Sync for McpContext
impl Unpin for McpContext
impl !UnwindSafe for McpContext
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