pub struct RouterResponse {
pub id: RequestId,
pub inner: Result<McpResponse, JsonRpcError>,
}Expand description
Response type for the tower Service implementation
Fields§
§id: RequestId§inner: Result<McpResponse, JsonRpcError>Implementations§
Source§impl RouterResponse
impl RouterResponse
Sourcepub fn into_jsonrpc(self) -> JsonRpcResponse
pub fn into_jsonrpc(self) -> JsonRpcResponse
Convert to JSON-RPC response
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RouterResponse
impl RefUnwindSafe for RouterResponse
impl Send for RouterResponse
impl Sync for RouterResponse
impl Unpin for RouterResponse
impl UnwindSafe for RouterResponse
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