pub enum Error {
Show 26 variants
MissingCodeVerifier,
MissingPatameter(String),
NotValidUri(String),
Request(Error),
InvalidCodeResponse(Error),
InvalidTokenResponse(Error),
InvalidResponse(String),
CacheError(String),
TokenRefreshFailed(String),
BadRequest(String),
Unauthorized(String),
Forbidden(String),
NotFound(String),
TooManyRequests(String),
InternalServerError(String),
BadGateway(String),
ServiceUnavailable(String),
UnknownStatusCode(u16, String),
AuthCacheNotConfigured,
OAuthConfigNotConfigured,
HttpClientNotConfigured,
SessionNotFound,
SessionExpired,
CacheAccessError(String),
SessionUpdateFailed(String),
TokenRefreshFailedAuth(String),
}Variants§
MissingCodeVerifier
MissingPatameter(String)
NotValidUri(String)
Request(Error)
InvalidCodeResponse(Error)
InvalidTokenResponse(Error)
InvalidResponse(String)
CacheError(String)
TokenRefreshFailed(String)
BadRequest(String)
Forbidden(String)
NotFound(String)
TooManyRequests(String)
InternalServerError(String)
BadGateway(String)
UnknownStatusCode(u16, String)
AuthCacheNotConfigured
OAuthConfigNotConfigured
HttpClientNotConfigured
SessionNotFound
SessionExpired
CacheAccessError(String)
SessionUpdateFailed(String)
TokenRefreshFailedAuth(String)
Implementations§
Source§impl Error
impl Error
Sourcepub fn from_status_code(status: StatusCode, response_text: String) -> Self
pub fn from_status_code(status: StatusCode, response_text: String) -> Self
Convert HTTP status code and response text to appropriate Error variant
Trait Implementations§
Source§impl IntoResponse for Error
impl IntoResponse for Error
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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