pub enum GatewayErrorKind {
Unknown(ErrorCode),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
FiatRatesMissing,
}Expand description
All variants of errors that the gateway can return.
Variants§
Unknown(ErrorCode)
Unknown error
UnknownReqwest
Unknown Reqwest client error
Building
Error building the HTTP request
Connect
Error connecting to a remote HTTP service
Timeout
Request timed out
Decode
Error decoding/deserializing the HTTP response body
Server
General server error
Rejection
Client provided a bad request that the server rejected
AtCapacity
Server is at capacity
FiatRatesMissing
Missing fiat exchange rates; issue with upstream data source
Trait Implementations§
Source§impl ApiErrorKind for GatewayErrorKind
impl ApiErrorKind for GatewayErrorKind
Source§impl Clone for GatewayErrorKind
impl Clone for GatewayErrorKind
Source§fn clone(&self) -> GatewayErrorKind
fn clone(&self) -> GatewayErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 GatewayErrorKind
impl Debug for GatewayErrorKind
Source§impl Default for GatewayErrorKind
impl Default for GatewayErrorKind
Source§impl Display for GatewayErrorKind
impl Display for GatewayErrorKind
Source§impl From<CommonErrorKind> for GatewayErrorKind
impl From<CommonErrorKind> for GatewayErrorKind
Source§fn from(common: CommonErrorKind) -> Self
fn from(common: CommonErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<GatewayErrorKind> for ErrorCode
impl From<GatewayErrorKind> for ErrorCode
Source§fn from(val: GatewayErrorKind) -> ErrorCode
fn from(val: GatewayErrorKind) -> ErrorCode
Converts to this type from the input type.
Source§impl From<u16> for GatewayErrorKind
impl From<u16> for GatewayErrorKind
Source§impl Hash for GatewayErrorKind
impl Hash for GatewayErrorKind
Source§impl PartialEq for GatewayErrorKind
impl PartialEq for GatewayErrorKind
Source§impl ToHttpStatus for GatewayErrorKind
impl ToHttpStatus for GatewayErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for GatewayErrorKind
impl Eq for GatewayErrorKind
impl StructuralPartialEq for GatewayErrorKind
Auto Trait Implementations§
impl Freeze for GatewayErrorKind
impl RefUnwindSafe for GatewayErrorKind
impl Send for GatewayErrorKind
impl Sync for GatewayErrorKind
impl Unpin for GatewayErrorKind
impl UnsafeUnpin for GatewayErrorKind
impl UnwindSafe for GatewayErrorKind
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