pub enum HypixelApiError {
IntFromStrError(String),
UnexpectedResponseCode(StatusCode, Option<ErrorReply>),
Reqwest {
source: Error,
},
TokioSendTime {
source: TrySendError<Option<Duration>>,
},
TokioReceive {
source: RecvError,
},
SerdeJsonError {
source: Error,
},
}Variants§
IntFromStrError(String)
UnexpectedResponseCode(StatusCode, Option<ErrorReply>)
Reqwest
TokioSendTime
Fields
§
source: TrySendError<Option<Duration>>TokioReceive
SerdeJsonError
Trait Implementations§
Source§impl Debug for HypixelApiError
impl Debug for HypixelApiError
Source§impl Display for HypixelApiError
impl Display for HypixelApiError
Source§impl Error for HypixelApiError
impl Error for HypixelApiError
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()
Source§impl From<Error> for HypixelApiError
impl From<Error> for HypixelApiError
Source§impl From<Error> for HypixelApiError
impl From<Error> for HypixelApiError
Source§impl From<RecvError> for HypixelApiError
impl From<RecvError> for HypixelApiError
Source§impl From<TrySendError<Option<Duration>>> for HypixelApiError
impl From<TrySendError<Option<Duration>>> for HypixelApiError
Auto Trait Implementations§
impl Freeze for HypixelApiError
impl !RefUnwindSafe for HypixelApiError
impl Send for HypixelApiError
impl Sync for HypixelApiError
impl Unpin for HypixelApiError
impl !UnwindSafe for HypixelApiError
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