pub struct McpRequest {
pub message: Message,
pub transport: TransportContext,
pub cancellation: CancellationToken,
}Expand description
A parsed message plus transport-provided context.
Fields§
§message: MessageThe message.
transport: TransportContextValues attached by the transport and middleware.
cancellation: CancellationTokenCancelled when the client cancels the request.
Implementations§
Trait Implementations§
Source§impl Debug for McpRequest
impl Debug for McpRequest
Source§impl Service<McpRequest> for Server
impl Service<McpRequest> for Server
Source§type Future = Pin<Box<dyn Future<Output = Result<<Server as Service<McpRequest>>::Response, !>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Server as Service<McpRequest>>::Response, !>> + Send>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for McpRequest
impl !UnwindSafe for McpRequest
impl Freeze for McpRequest
impl Send for McpRequest
impl Sync for McpRequest
impl Unpin for McpRequest
impl UnsafeUnpin for McpRequest
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