pub struct ErrorCodes(pub i32);Expand description
Predefined error codes.
Tuple Fields§
§0: i32Implementations§
Source§impl ErrorCodes
impl ErrorCodes
pub const PARSE_ERROR: i32 = -32700
pub const INVALID_REQUEST: i32 = -32600
pub const METHOD_NOT_FOUND: i32 = -32601
pub const INVALID_PARAMS: i32 = -32602
pub const INTERNAL_ERROR: i32 = -32603
pub const SERVER_NOT_INITIALIZED: i32 = -32002
pub const UNKNOWN_ERROR_CODE: i32 = -32001
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
impl Eq 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 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