pub enum MapError {
UnsupportedTransport {
transport: String,
},
UnsupportedField {
field: String,
},
InvalidName {
name: String,
},
UnexpectedShape {
field: String,
expected: &'static str,
},
}Expand description
Why a server cannot be written to, or read from, a client. A write failure blocks that target; nothing is dropped silently (SPEC 7.1).
Variants§
UnsupportedTransport
The client cannot run this transport (http on Claude Desktop,
ws read from Claude Code).
UnsupportedField
The client has no native field for a set field (cwd on Claude).
InvalidName
The entry key breaks the client’s naming rule; set native_name.
UnexpectedShape
A native value has another kind than the client documents.
Implementations§
Trait Implementations§
impl Eq for MapError
Source§impl Error for MapError
impl Error for MapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for MapError
Auto Trait Implementations§
impl Forget for MapError
impl Freeze for MapError
impl Move for MapError
impl RefUnwindSafe for MapError
impl Send for MapError
impl Sync for MapErrorwhere
RawVecInner: Sync,
impl Unpin for MapError
impl UnsafeUnpin for MapError
impl UnwindSafe for MapError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.