pub struct McpConnectionTo<Counterpart: Role> { /* private fields */ }Expand description
Context about the ACP and MCP connection available to an MCP server.
Implementations§
Source§impl<Counterpart: Role> McpConnectionTo<Counterpart>
impl<Counterpart: Role> McpConnectionTo<Counterpart>
Sourcepub fn acp_url(&self) -> String
👎Deprecated since 0.12.0: renamed to acp_id()
pub fn acp_url(&self) -> String
renamed to acp_id()
The acp:UUID that was given.
Sourcepub fn connection_to(&self) -> ConnectionTo<Counterpart>
pub fn connection_to(&self) -> ConnectionTo<Counterpart>
The host connection context.
If this MCP server is hosted inside of an ACP context, this will be the ACP connection context.
Trait Implementations§
Auto Trait Implementations§
impl<Counterpart> Freeze for McpConnectionTo<Counterpart>where
Counterpart: Freeze,
impl<Counterpart> !RefUnwindSafe for McpConnectionTo<Counterpart>
impl<Counterpart> Send for McpConnectionTo<Counterpart>
impl<Counterpart> Sync for McpConnectionTo<Counterpart>
impl<Counterpart> Unpin for McpConnectionTo<Counterpart>where
Counterpart: Unpin,
impl<Counterpart> UnsafeUnpin for McpConnectionTo<Counterpart>where
Counterpart: UnsafeUnpin,
impl<Counterpart> !UnwindSafe for McpConnectionTo<Counterpart>
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