pub enum Rejection {
Error {
id: Option<RequestId>,
error: McpError,
},
UnexpectedResponse,
}Expand description
Why an incoming message was rejected.
Variants§
Error
The message is invalid; answer with this error.
Fields
UnexpectedResponse
The message is a JSON-RPC response, which clients must not send. Transports drop it (stdio) or answer with an HTTP error (HTTP).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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