#[non_exhaustive]pub enum ErrorCode {
Show 29 variants
InvalidParameters,
UnknownIndicator,
UnknownInstrument,
NotCovered,
QuotaExceeded,
RateLimited,
Capacity,
CursorExpired,
Unauthorized,
Forbidden,
NotFound,
MethodNotAllowed,
Conflict,
SourceDown,
UpstreamError,
Internal,
Configuration,
Closed,
KeyRevoked,
EntitlementsChanged,
TooManyConnections,
ProtocolError,
BinaryNotSupported,
InvalidUtf8,
MessageTooBig,
Aborted,
NetworkError,
Http(u16),
Other(String),
}Expand description
A code of ERROR_CODES, HTTP_<status> for an HTTP error answer without a problem document, or a code this
version of the SDK does not know yet (Other).
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.
InvalidParameters
UnknownIndicator
UnknownInstrument
NotCovered
QuotaExceeded
RateLimited
Capacity
CursorExpired
Forbidden
NotFound
MethodNotAllowed
Conflict
SourceDown
UpstreamError
Internal
Configuration
Closed
KeyRevoked
EntitlementsChanged
TooManyConnections
ProtocolError
BinaryNotSupported
InvalidUtf8
MessageTooBig
Aborted
NetworkError
Http(u16)
HTTP_<status>: an HTTP error answer without a problem document.
Other(String)
A code sent by the service that this version of the SDK does not list.
Implementations§
Trait Implementations§
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