Enum llmvm_protocol::jsonrpc::JsonRpcErrorCode
source · #[repr(i32)]pub enum JsonRpcErrorCode {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
}
Expand description
A subset of JSON-RPC error codes.
Variants§
Trait Implementations§
source§impl Clone for JsonRpcErrorCode
impl Clone for JsonRpcErrorCode
source§fn clone(&self) -> JsonRpcErrorCode
fn clone(&self) -> JsonRpcErrorCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JsonRpcErrorCode
impl Debug for JsonRpcErrorCode
source§impl From<ProtocolErrorType> for JsonRpcErrorCode
impl From<ProtocolErrorType> for JsonRpcErrorCode
source§fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
fn from(value: ProtocolErrorType) -> JsonRpcErrorCode
Converts to this type from the input type.
source§impl From<i32> for JsonRpcErrorCode
impl From<i32> for JsonRpcErrorCode
source§fn from(value: i32) -> JsonRpcErrorCode
fn from(value: i32) -> JsonRpcErrorCode
Converts to this type from the input type.
source§impl Into<ProtocolErrorType> for JsonRpcErrorCode
impl Into<ProtocolErrorType> for JsonRpcErrorCode
source§fn into(self) -> ProtocolErrorType
fn into(self) -> ProtocolErrorType
Converts this type into the (usually inferred) input type.
source§impl PartialEq<JsonRpcErrorCode> for JsonRpcErrorCode
impl PartialEq<JsonRpcErrorCode> for JsonRpcErrorCode
source§fn eq(&self, other: &JsonRpcErrorCode) -> bool
fn eq(&self, other: &JsonRpcErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JsonRpcErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for JsonRpcErrorCode
impl Send for JsonRpcErrorCode
impl Sync for JsonRpcErrorCode
impl Unpin for JsonRpcErrorCode
impl UnwindSafe for JsonRpcErrorCode
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