pub enum Error {
Reqwest(Error),
FailedResponse(u16, String),
Json(Error),
}
Expand description
These enumerates all errors that can be returned from the Hypixel public API.
Variants§
Reqwest(Error)
Error returned by Reqwest.
FailedResponse(u16, String)
Hypixel API returned an unsuccessfull response code.
Json(Error)
Serde could not deserialize JSON data properly.
Trait Implementations§
Source§impl Debug for HypixelError
impl Debug for HypixelError
Source§impl Display for HypixelError
impl Display for HypixelError
Source§impl Error for HypixelError
impl Error for HypixelError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Freeze for HypixelError
impl !RefUnwindSafe for HypixelError
impl Send for HypixelError
impl Sync for HypixelError
impl Unpin for HypixelError
impl !UnwindSafe for HypixelError
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