pub enum SdkErrorCodes {
CONNECTION_CLOSED = -32_000,
REQUEST_TIMEOUT = -32_001,
RESOURCE_NOT_FOUND = -32_002,
BAD_REQUEST = -32_015,
SESSION_NOT_FOUND = -32_016,
INVALID_REQUEST = -32_600,
METHOD_NOT_FOUND = -32_601,
INVALID_PARAMS = -32_602,
INTERNAL_ERROR = -32_603,
PARSE_ERROR = -32_700,
}
Expand description
Enum representing SDK error codes.
Variants§
CONNECTION_CLOSED = -32_000
REQUEST_TIMEOUT = -32_001
RESOURCE_NOT_FOUND = -32_002
BAD_REQUEST = -32_015
SESSION_NOT_FOUND = -32_016
INVALID_REQUEST = -32_600
METHOD_NOT_FOUND = -32_601
INVALID_PARAMS = -32_602
INTERNAL_ERROR = -32_603
PARSE_ERROR = -32_700
Trait Implementations§
Source§impl Display for SdkErrorCodes
impl Display for SdkErrorCodes
Source§impl From<SdkErrorCodes> for i64
impl From<SdkErrorCodes> for i64
Source§fn from(code: SdkErrorCodes) -> Self
fn from(code: SdkErrorCodes) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SdkErrorCodes
impl RefUnwindSafe for SdkErrorCodes
impl Send for SdkErrorCodes
impl Sync for SdkErrorCodes
impl Unpin for SdkErrorCodes
impl UnwindSafe for SdkErrorCodes
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