Enum jsonrpsee_server::MethodsError
source · pub enum MethodsError {
Parse(Error),
JsonRpc(ErrorObject<'static>),
InvalidSubscriptionId(String),
}
Expand description
The error that can occur when Methods::call
or Methods::subscribe
is invoked.
Variants§
Parse(Error)
Failed to parse the call as valid JSON-RPC.
JsonRpc(ErrorObject<'static>)
Specific JSON-RPC error.
InvalidSubscriptionId(String)
Invalid subscription ID.
Trait Implementations§
source§impl Debug for MethodsError
impl Debug for MethodsError
source§impl Display for MethodsError
impl Display for MethodsError
source§impl Error for MethodsError
impl Error for MethodsError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<Error> for MethodsError
impl From<Error> for MethodsError
source§fn from(source: Error) -> MethodsError
fn from(source: Error) -> MethodsError
Converts to this type from the input type.
source§impl From<ErrorObject<'static>> for MethodsError
impl From<ErrorObject<'static>> for MethodsError
source§fn from(source: ErrorObject<'static>) -> MethodsError
fn from(source: ErrorObject<'static>) -> MethodsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MethodsError
impl !RefUnwindSafe for MethodsError
impl Send for MethodsError
impl Sync for MethodsError
impl Unpin for MethodsError
impl !UnwindSafe for MethodsError
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