pub enum Legacy2024EnvelopeError {
Envelope(Legacy2024WireError),
Method(Legacy2024WireError),
MethodParams(Legacy2024WireError),
}Expand description
One exact-2024 admission failure, split by JSON-RPC error taxonomy.
Envelope-structure failures map to Invalid Request (-32600); a structurally valid JSON-RPC envelope naming a method outside the exact 2024-11-05 inventory maps to Method Not Found (-32601); a valid envelope whose method-owned params content is malformed maps to Invalid Params (-32602). Envelope admission runs first, so a doubly-invalid frame reports its envelope failure.
Variants§
Envelope(Legacy2024WireError)
The JSON-RPC envelope itself is not an exact MCP 2024-11-05 frame.
Method(Legacy2024WireError)
The envelope is a valid JSON-RPC frame, but its method name is not part of exact MCP 2024-11-05 (JSON-RPC 2.0 Method Not Found).
MethodParams(Legacy2024WireError)
The envelope is valid but the method’s params content is malformed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Legacy2024EnvelopeError
impl RefUnwindSafe for Legacy2024EnvelopeError
impl Send for Legacy2024EnvelopeError
impl Sync for Legacy2024EnvelopeError
impl Unpin for Legacy2024EnvelopeError
impl UnsafeUnpin for Legacy2024EnvelopeError
impl UnwindSafe for Legacy2024EnvelopeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).