#[repr(i32)]pub enum ErrorCode {
UnknownProtocolVersion = 1,
ParseError = -32_700,
InvalidRequest = -32_600,
MethodNotFound = -32_601,
InvalidParams = -32_602,
InternalError = -32_603,
ServerNotInitialized = -32_002,
UnknownErrorCode = -32_001,
RequestFailed = -32_803,
ServerCancelled = -32_802,
ContentModified = -32_801,
RequestCancelled = -32_800,
}Expand description
Error codes used to either return a response or log to the client.
Variants§
UnknownProtocolVersion = 1
ParseError = -32_700
InvalidRequest = -32_600
MethodNotFound = -32_601
InvalidParams = -32_602
InternalError = -32_603
ServerNotInitialized = -32_002
UnknownErrorCode = -32_001
RequestFailed = -32_803
ServerCancelled = -32_802
ContentModified = -32_801
RequestCancelled = -32_800
Trait Implementations§
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 StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin 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