pub enum LegacyClassificationError {
Malformed,
Batch,
MissingMethod,
MissingName(Method),
}Expand description
Why a legacy request could not be classified from its body.
Variants§
Malformed
The body was not JSON.
Batch
A JSON-RPC batch. Several calls in one request cannot be priced as one, and batching was removed from the protocol in 2025-06-18.
MissingMethod
No usable method string.
MissingName(Method)
A name-bearing method arrived without params.name or params.uri.
Trait Implementations§
Source§impl Clone for LegacyClassificationError
impl Clone for LegacyClassificationError
Source§impl Debug for LegacyClassificationError
impl Debug for LegacyClassificationError
Source§impl Display for LegacyClassificationError
impl Display for LegacyClassificationError
impl Eq for LegacyClassificationError
Source§impl Error for LegacyClassificationError
impl Error for LegacyClassificationError
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 LegacyClassificationError
Auto Trait Implementations§
impl Freeze for LegacyClassificationError
impl RefUnwindSafe for LegacyClassificationError
impl Send for LegacyClassificationError
impl Sync for LegacyClassificationError
impl Unpin for LegacyClassificationError
impl UnsafeUnpin for LegacyClassificationError
impl UnwindSafe for LegacyClassificationError
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