pub enum LTAError {
BackendError(Box<dyn Error + Send + Sync>),
InvalidAPIKey,
RateLimitReached,
UnknownEnumVariant,
Unauthorized,
NotFound,
InternalServerError,
FailedToParseBody,
UnhandledStatusCode(StatusCode, String),
Custom(String),
}
Expand description
LTAError type, all request using lta-rs returns Result<T, LTAError>
Variants§
BackendError(Box<dyn Error + Send + Sync>)
Internal error within the client backend, open a PR if this happens
InvalidAPIKey
API key is most likely empty
RateLimitReached
You have reached the server limit, try again later
UnknownEnumVariant
Response body can’t be parsed to a valid enum
Make sure that your API key is correct and valid
NotFound
HTTP NOTFOUND
InternalServerError
FailedToParseBody
Failed to parse body of response, probably malformed
UnhandledStatusCode(StatusCode, String)
Undocumented status code, open an issue if this happens
Custom(String)
Custom
Trait Implementations§
source§impl Error for LTAError
impl Error for LTAError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for LTAError
impl Send for LTAError
impl Sync for LTAError
impl Unpin for LTAError
impl !UnwindSafe for LTAError
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