pub struct RouterRequest {
pub id: RequestId,
pub inner: McpRequest,
pub extensions: Extensions,
}Expand description
Request type for the tower Service implementation
Fields§
§id: RequestId§inner: McpRequest§extensions: ExtensionsType-map for passing data (e.g., TokenClaims) through middleware.
Trait Implementations§
Source§impl Debug for RouterRequest
impl Debug for RouterRequest
Source§impl<S> Service<RouterRequest> for CatchError<S>where
S: Service<RouterRequest, Response = RouterResponse> + Clone + Send + 'static,
S::Error: Display + Send,
S::Future: Send,
impl<S> Service<RouterRequest> for CatchError<S>where
S: Service<RouterRequest, Response = RouterResponse> + Clone + Send + 'static,
S::Error: Display + Send,
S::Future: Send,
Source§type Response = RouterResponse
type Response = RouterResponse
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<RouterResponse, Infallible>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<RouterResponse, Infallible>> + Send>>
The future response value.
Source§impl Service<RouterRequest> for McpRouter
impl Service<RouterRequest> for McpRouter
Source§type Response = RouterResponse
type Response = RouterResponse
Responses given by the service.
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<McpRouter as Service<RouterRequest>>::Response, <McpRouter as Service<RouterRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<McpRouter as Service<RouterRequest>>::Response, <McpRouter as Service<RouterRequest>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for RouterRequest
impl !RefUnwindSafe for RouterRequest
impl Send for RouterRequest
impl Sync for RouterRequest
impl Unpin for RouterRequest
impl !UnwindSafe for RouterRequest
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