pub struct ErrorCode(pub i32);Expand description
JSON-RPC error code for custom errors.
Tuple Fields§
§0: i32Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const PARSE_ERROR: Self
pub const PARSE_ERROR: Self
Parse error (-32700)
Sourcepub const INVALID_REQUEST: Self
pub const INVALID_REQUEST: Self
Invalid request (-32600)
Sourcepub const METHOD_NOT_FOUND: Self
pub const METHOD_NOT_FOUND: Self
Method not found (-32601)
Sourcepub const INVALID_PARAMS: Self
pub const INVALID_PARAMS: Self
Invalid params (-32602)
Sourcepub const INTERNAL_ERROR: Self
pub const INTERNAL_ERROR: Self
Internal error (-32603)
Sourcepub const REQUEST_TIMEOUT: Self
pub const REQUEST_TIMEOUT: Self
Request timeout (-32001)
Sourcepub const UNSUPPORTED_CAPABILITY: Self
pub const UNSUPPORTED_CAPABILITY: Self
Unsupported capability (-32002)
Sourcepub const AUTHENTICATION_REQUIRED: Self
pub const AUTHENTICATION_REQUIRED: Self
Authentication required (-32003)
Sourcepub const PERMISSION_DENIED: Self
pub const PERMISSION_DENIED: Self
Permission denied (-32004)
Sourcepub const RATE_LIMITED: Self
pub const RATE_LIMITED: Self
Rate limit exceeded (-32005)
Sourcepub const CIRCUIT_BREAKER_OPEN: Self
pub const CIRCUIT_BREAKER_OPEN: Self
Circuit breaker open (-32006)
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.