pub struct McpRequestContext<Counterpart: Role> { /* private fields */ }Available on crate feature
unstable_mcp_over_acp only.Expand description
Authority for a single operation, not for the lifetime of its service.
Implementations§
Source§impl<Counterpart: Role> McpRequestContext<Counterpart>
impl<Counterpart: Role> McpRequestContext<Counterpart>
Sourcepub fn server_id(&self) -> &McpServerAcpId
pub fn server_id(&self) -> &McpServerAcpId
Server identifier bound to this invocation.
Sourcepub fn request_id(&self) -> &McpRequestId
pub fn request_id(&self) -> &McpRequestId
Logical request identifier, held until cleanup and terminal output finish.
Sourcepub fn connection(&self) -> &McpConnectionTo<Counterpart>
pub fn connection(&self) -> &McpConnectionTo<Counterpart>
Host connection for application tools.
Sourcepub fn metadata(&self) -> &Map<String, Value>
pub fn metadata(&self) -> &Map<String, Value>
Validated protocol version and client capability metadata.
Sourcepub fn cancellation(&self) -> &RequestCancellation
pub fn cancellation(&self) -> &RequestCancellation
Cancellation of the outer ACP request.
Sourcepub fn operation_cancellation(&self) -> &McpOperationCancellation
pub fn operation_cancellation(&self) -> &McpOperationCancellation
Cancellation including provider removal and transport EOF.
Trait Implementations§
Auto Trait Implementations§
impl<Counterpart> !RefUnwindSafe for McpRequestContext<Counterpart>
impl<Counterpart> !UnwindSafe for McpRequestContext<Counterpart>
impl<Counterpart> Freeze for McpRequestContext<Counterpart>where
McpConnectionTo<Counterpart>: Freeze,
impl<Counterpart> Send for McpRequestContext<Counterpart>where
McpConnectionTo<Counterpart>: Send,
impl<Counterpart> Sync for McpRequestContext<Counterpart>where
McpConnectionTo<Counterpart>: Sync,
impl<Counterpart> Unpin for McpRequestContext<Counterpart>where
McpConnectionTo<Counterpart>: Unpin,
impl<Counterpart> UnsafeUnpin for McpRequestContext<Counterpart>where
McpConnectionTo<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.