#[non_exhaustive]pub enum ErrorCode {
Show 22 variants
Unknown,
Unauthorized,
Timeout,
MethodNotFound,
ServiceNotFound,
ServiceUnavailable,
BadRequest,
ValidationFailed,
RateLimited,
CircuitOpen,
PayloadTooLarge,
ParseError,
ReplayDetected,
IdempotentReplay,
ConnectionLost,
Internal,
Cancelled,
UnsupportedVersion,
AckFailed,
RemoteError,
IdempotencyKeyConflict,
Other(u16),
}Expand description
Stable numeric error codes shared with the TypeScript implementation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Timeout
MethodNotFound
ServiceNotFound
BadRequest
ValidationFailed
RateLimited
CircuitOpen
PayloadTooLarge
ParseError
ReplayDetected
IdempotentReplay
ConnectionLost
Internal
Cancelled
UnsupportedVersion
AckFailed
RemoteError
IdempotencyKeyConflict
Other(u16)
A code this crate does not know about; preserved verbatim on the wire.
Implementations§
Trait Implementations§
impl Copy for ErrorCode
Source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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