#[repr(u16)]pub enum CommonErrorKind {
UnknownReqwest = 1,
Building = 2,
Connect = 3,
Timeout = 4,
Decode = 5,
Server = 6,
Rejection = 7,
AtCapacity = 8,
}Expand description
Error variants common to all ApiErrors.
Variants§
UnknownReqwest = 1
Unknown Reqwest client error
Building = 2
Error building the HTTP request
Connect = 3
Error connecting to a remote HTTP service
Timeout = 4
Request timed out
Decode = 5
Error decoding/deserializing the HTTP response body
Server = 6
General server error
Rejection = 7
Client provided a bad request that the server rejected
AtCapacity = 8
Server is currently at capacity; retry later
Implementations§
Trait Implementations§
Source§impl Clone for CommonErrorKind
impl Clone for CommonErrorKind
Source§fn clone(&self) -> CommonErrorKind
fn clone(&self) -> CommonErrorKind
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 CommonErrorKind
impl Debug for CommonErrorKind
Source§impl From<CommonErrorKind> for BackendErrorKind
impl From<CommonErrorKind> for BackendErrorKind
Source§fn from(common: CommonErrorKind) -> BackendErrorKind
fn from(common: CommonErrorKind) -> BackendErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for GatewayErrorKind
impl From<CommonErrorKind> for GatewayErrorKind
Source§fn from(common: CommonErrorKind) -> GatewayErrorKind
fn from(common: CommonErrorKind) -> GatewayErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for LspErrorKind
impl From<CommonErrorKind> for LspErrorKind
Source§fn from(common: CommonErrorKind) -> LspErrorKind
fn from(common: CommonErrorKind) -> LspErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for MegaErrorKind
impl From<CommonErrorKind> for MegaErrorKind
Source§fn from(common: CommonErrorKind) -> MegaErrorKind
fn from(common: CommonErrorKind) -> MegaErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for NodeErrorKind
impl From<CommonErrorKind> for NodeErrorKind
Source§fn from(common: CommonErrorKind) -> NodeErrorKind
fn from(common: CommonErrorKind) -> NodeErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for RunnerErrorKind
impl From<CommonErrorKind> for RunnerErrorKind
Source§fn from(common: CommonErrorKind) -> RunnerErrorKind
fn from(common: CommonErrorKind) -> RunnerErrorKind
Converts to this type from the input type.
Source§impl From<CommonErrorKind> for SdkErrorKind
impl From<CommonErrorKind> for SdkErrorKind
Source§fn from(common: CommonErrorKind) -> SdkErrorKind
fn from(common: CommonErrorKind) -> SdkErrorKind
Converts to this type from the input type.
Source§impl ToHttpStatus for CommonErrorKind
impl ToHttpStatus for CommonErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for CommonErrorKind
Auto Trait Implementations§
impl Freeze for CommonErrorKind
impl RefUnwindSafe for CommonErrorKind
impl Send for CommonErrorKind
impl Sync for CommonErrorKind
impl Unpin for CommonErrorKind
impl UnsafeUnpin for CommonErrorKind
impl UnwindSafe for CommonErrorKind
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