pub enum NameError {
NotBase64,
NotUtf8,
}Expand description
Why a Mcp-Name value could not be decoded.
Both variants mean the header wore the sentinel markers but its payload was not a valid Base64-encoded UTF-8 string. A conforming client cannot produce either, so the right response is to reject the request rather than guess.
Variants§
NotBase64
The payload between the markers was not valid standard-alphabet Base64.
NotUtf8
The payload decoded, but the bytes were not valid UTF-8.
Trait Implementations§
impl Eq for NameError
Source§impl Error for NameError
impl Error for NameError
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 NameError
Auto Trait Implementations§
impl Freeze for NameError
impl RefUnwindSafe for NameError
impl Send for NameError
impl Sync for NameError
impl Unpin for NameError
impl UnsafeUnpin for NameError
impl UnwindSafe for NameError
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