pub struct ErrorCode(pub i32);Expand description
Error codes used in RpcError::code. They follow JSON-RPC and LSP.
Tuple Fields§
§0: i32Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const PARSE_ERROR: Self
pub const PARSE_ERROR: Self
The message could not be decoded.
Sourcepub const INVALID_REQUEST: Self
pub const INVALID_REQUEST: Self
The message is not a valid request.
Sourcepub const METHOD_NOT_FOUND: Self
pub const METHOD_NOT_FOUND: Self
The receiver has no handler for the method.
Sourcepub const INVALID_PARAMS: Self
pub const INVALID_PARAMS: Self
The params could not be decoded into the method’s params type.
Sourcepub const INTERNAL_ERROR: Self
pub const INTERNAL_ERROR: Self
The handler failed for a reason of its own.
Sourcepub const REQUEST_CANCELLED: Self
pub const REQUEST_CANCELLED: Self
The request was cancelled with $/cancel.
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Forget for ErrorCode
impl Freeze for ErrorCode
impl Move for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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