pub enum ShiftError {
Show 17 variants
Reqwest(Error),
IncorrectEmailOrPassword,
InvalidRedirect(String),
Json(Error),
InvalidRewardsPage(RewardsPageError),
InvalidHomePage(InvalidHomePageError),
InvalidRewardForm(RewardFormError),
InvalidCodeRedemptionPage(InvalidCodeRedemptionPageError),
InvalidAccountPage(InvalidAccountPage),
MissingAlertNotice,
NonExistentShiftCode,
ExpiredShiftCode,
UnavailableShiftCode,
ShiftCodeAlreadyRedeemed,
LaunchShiftGame,
ShiftCodeRedeemFail,
TokioJoin(JoinError),
}Expand description
The library error type
Variants§
Reqwest(Error)
Reqwest HTTP error
IncorrectEmailOrPassword
The password or email was incorrect
InvalidRedirect(String)
Invalid HTTP Redirect
Json(Error)
Json Error
InvalidRewardsPage(RewardsPageError)
Invalid Rewards page
InvalidHomePage(InvalidHomePageError)
Invalid Home page
InvalidRewardForm(RewardFormError)
Invalid RewardForm
InvalidCodeRedemptionPage(InvalidCodeRedemptionPageError)
Invalid code redemption page
InvalidAccountPage(InvalidAccountPage)
Invalid Account page
MissingAlertNotice
Missing alert notice
NonExistentShiftCode
NonExistentShiftCode
ExpiredShiftCode
Expired ShiftCode
Unavailable ShiftCode
ShiftCodeAlreadyRedeemed
Shift Code already redeemed
LaunchShiftGame
Launch shift game
ShiftCodeRedeemFail
ShiftCode Redeem Fail
TokioJoin(JoinError)
Failed to join tokio task
Trait Implementations§
Source§impl Debug for ShiftError
impl Debug for ShiftError
Source§impl Display for ShiftError
impl Display for ShiftError
Source§impl Error for ShiftError
impl Error for ShiftError
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 ShiftError
impl From<Error> for ShiftError
Source§impl From<Error> for ShiftError
impl From<Error> for ShiftError
Source§impl From<FromElementError> for ShiftError
impl From<FromElementError> for ShiftError
Source§fn from(source: RewardFormError) -> Self
fn from(source: RewardFormError) -> Self
Converts to this type from the input type.
Source§impl From<FromHtmlError> for ShiftError
impl From<FromHtmlError> for ShiftError
Source§fn from(source: RewardsPageError) -> Self
fn from(source: RewardsPageError) -> Self
Converts to this type from the input type.
Source§impl From<FromHtmlError> for ShiftError
impl From<FromHtmlError> for ShiftError
Source§fn from(source: InvalidHomePageError) -> Self
fn from(source: InvalidHomePageError) -> Self
Converts to this type from the input type.
Source§impl From<FromHtmlError> for ShiftError
impl From<FromHtmlError> for ShiftError
Source§fn from(source: InvalidCodeRedemptionPageError) -> Self
fn from(source: InvalidCodeRedemptionPageError) -> Self
Converts to this type from the input type.
Source§impl From<FromHtmlError> for ShiftError
impl From<FromHtmlError> for ShiftError
Source§fn from(source: InvalidAccountPage) -> Self
fn from(source: InvalidAccountPage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShiftError
impl !RefUnwindSafe for ShiftError
impl Send for ShiftError
impl Sync for ShiftError
impl Unpin for ShiftError
impl !UnwindSafe for ShiftError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.