pub enum BackendErrorKind {
Show 19 variants
Unknown(u16),
UnknownReqwest,
Building,
Connect,
Timeout,
Decode,
Server,
Rejection,
AtCapacity,
Database,
NotFound,
Duplicate,
Conversion,
Unauthenticated,
Unauthorized,
AuthExpired,
InvalidParsedRequest,
BatchSizeOverLimit,
NotUpdatable,
}Expand description
All variants of errors that the backend can return.
Variants§
Unknown(u16)
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
Database
Database error
NotFound
Resource not found
Duplicate
Resource was duplicate
Conversion
Could not convert field or model to type
Unauthenticated
User failed authentication
User not authorized
AuthExpired
Auth token or auth request is expired
InvalidParsedRequest
Parsed request is invalid
BatchSizeOverLimit
Request batch size is over the limit
NotUpdatable
Resource is not updatable
Trait Implementations§
Source§impl ApiErrorKind for BackendErrorKind
impl ApiErrorKind for BackendErrorKind
Source§const KINDS: &'static [BackendErrorKind]
const KINDS: &'static [BackendErrorKind]
An array of all known error kind variants, excluding
Unknown(_).Source§fn is_unknown(&self) -> bool
fn is_unknown(&self) -> bool
Returns
true if the error kind is unrecognized (at least by this
version of the software).Source§impl Clone for BackendErrorKind
impl Clone for BackendErrorKind
Source§fn clone(&self) -> BackendErrorKind
fn clone(&self) -> BackendErrorKind
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 BackendErrorKind
impl Debug for BackendErrorKind
Source§impl Default for BackendErrorKind
impl Default for BackendErrorKind
Source§fn default() -> BackendErrorKind
fn default() -> BackendErrorKind
Returns the “default value” for a type. Read more
Source§impl Display for BackendErrorKind
impl Display for BackendErrorKind
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<u16> for BackendErrorKind
impl From<u16> for BackendErrorKind
Source§fn from(code: u16) -> BackendErrorKind
fn from(code: u16) -> BackendErrorKind
Converts to this type from the input type.
Source§impl Hash for BackendErrorKind
impl Hash for BackendErrorKind
Source§impl PartialEq for BackendErrorKind
impl PartialEq for BackendErrorKind
Source§impl ToHttpStatus for BackendErrorKind
impl ToHttpStatus for BackendErrorKind
fn to_http_status(&self) -> StatusCode
impl Copy for BackendErrorKind
impl Eq for BackendErrorKind
impl StructuralPartialEq for BackendErrorKind
Auto Trait Implementations§
impl Freeze for BackendErrorKind
impl RefUnwindSafe for BackendErrorKind
impl Send for BackendErrorKind
impl Sync for BackendErrorKind
impl Unpin for BackendErrorKind
impl UnsafeUnpin for BackendErrorKind
impl UnwindSafe for BackendErrorKind
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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.