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> !RefUnwindSafe for McpConnectionTo<Counterpart>
impl<Counterpart> !UnwindSafe for McpConnectionTo<Counterpart>
impl<Counterpart> Freeze for McpConnectionTo<Counterpart>where
Counterpart: Freeze,
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,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.