pub enum AuthError {
DoesNotOwnGame,
GetMicrosoftAuthToken(GetMicrosoftAuthTokenError),
RefreshMicrosoftAuthToken(RefreshMicrosoftAuthTokenError),
GetXboxLiveAuthToken(MinecraftXstsAuthError),
GetMinecraftProfile(GetProfileError),
CheckOwnership(CheckOwnershipError),
GetMinecraftAuthToken(MinecraftAuthError),
GetXboxLiveAuth(XboxLiveAuthError),
}Variants§
DoesNotOwnGame
GetMicrosoftAuthToken(GetMicrosoftAuthTokenError)
RefreshMicrosoftAuthToken(RefreshMicrosoftAuthTokenError)
GetXboxLiveAuthToken(MinecraftXstsAuthError)
GetMinecraftProfile(GetProfileError)
CheckOwnership(CheckOwnershipError)
GetMinecraftAuthToken(MinecraftAuthError)
GetXboxLiveAuth(XboxLiveAuthError)
Trait Implementations§
Source§impl Error for AuthError
impl Error for AuthError
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<CheckOwnershipError> for AuthError
impl From<CheckOwnershipError> for AuthError
Source§fn from(source: CheckOwnershipError) -> Self
fn from(source: CheckOwnershipError) -> Self
Converts to this type from the input type.
Source§impl From<GetMicrosoftAuthTokenError> for AuthError
impl From<GetMicrosoftAuthTokenError> for AuthError
Source§fn from(source: GetMicrosoftAuthTokenError) -> Self
fn from(source: GetMicrosoftAuthTokenError) -> Self
Converts to this type from the input type.
Source§impl From<GetProfileError> for AuthError
impl From<GetProfileError> for AuthError
Source§fn from(source: GetProfileError) -> Self
fn from(source: GetProfileError) -> Self
Converts to this type from the input type.
Source§impl From<MinecraftAuthError> for AuthError
impl From<MinecraftAuthError> for AuthError
Source§fn from(source: MinecraftAuthError) -> Self
fn from(source: MinecraftAuthError) -> Self
Converts to this type from the input type.
Source§impl From<MinecraftXstsAuthError> for AuthError
impl From<MinecraftXstsAuthError> for AuthError
Source§fn from(source: MinecraftXstsAuthError) -> Self
fn from(source: MinecraftXstsAuthError) -> Self
Converts to this type from the input type.
Source§impl From<RefreshMicrosoftAuthTokenError> for AuthError
impl From<RefreshMicrosoftAuthTokenError> for AuthError
Source§fn from(source: RefreshMicrosoftAuthTokenError) -> Self
fn from(source: RefreshMicrosoftAuthTokenError) -> Self
Converts to this type from the input type.
Source§impl From<XboxLiveAuthError> for AuthError
impl From<XboxLiveAuthError> for AuthError
Source§fn from(source: XboxLiveAuthError) -> Self
fn from(source: XboxLiveAuthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AuthError
impl !UnwindSafe for AuthError
impl Forget for AuthError
impl Freeze for AuthErrorwhere
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
impl Move for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthErrorwhere
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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