pub enum ErrorCodes {
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerNotInitialized,
UnknownErrorCode,
Custom(i32),
}Expand description
Predefined error codes.
Variants§
ParseError
InvalidRequest
MethodNotFound
InvalidParams
InternalError
ServerNotInitialized
Error code indicating that a server received a notification or
request before the server has received the initialize request.
UnknownErrorCode
Custom(i32)
A custom value.
Trait Implementations§
Source§impl Clone for ErrorCodes
impl Clone for ErrorCodes
Source§fn clone(&self) -> ErrorCodes
fn clone(&self) -> ErrorCodes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorCodes
impl Debug for ErrorCodes
Source§impl<'de> Deserialize<'de> for ErrorCodes
impl<'de> Deserialize<'de> for ErrorCodes
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
Source§impl From<ErrorCodes> for i32
impl From<ErrorCodes> for i32
Source§fn from(e: ErrorCodes) -> Self
fn from(e: ErrorCodes) -> Self
Converts to this type from the input type.
Source§impl From<i32> for ErrorCodes
impl From<i32> for ErrorCodes
Source§impl Hash for ErrorCodes
impl Hash for ErrorCodes
Source§impl PartialEq for ErrorCodes
impl PartialEq for ErrorCodes
Source§fn eq(&self, other: &ErrorCodes) -> bool
fn eq(&self, other: &ErrorCodes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErrorCodes
impl Serialize for ErrorCodes
impl Copy for ErrorCodes
impl Eq for ErrorCodes
impl StructuralPartialEq for ErrorCodes
Auto Trait Implementations§
impl Freeze for ErrorCodes
impl RefUnwindSafe for ErrorCodes
impl Send for ErrorCodes
impl Sync for ErrorCodes
impl Unpin for ErrorCodes
impl UnsafeUnpin for ErrorCodes
impl UnwindSafe for ErrorCodes
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