pub enum OidcClientError {
Error(Error, Option<HttpResponse>),
TypeError(TypeError, Option<HttpResponse>),
RPError(RPError, Option<HttpResponse>),
OPError(StandardBodyError, Option<HttpResponse>),
}
Expand description
§OidcClientError
Error returned for all things related to openid_client
Variants§
Error(Error, Option<HttpResponse>)
TypeError(TypeError, Option<HttpResponse>)
RPError(RPError, Option<HttpResponse>)
OPError(StandardBodyError, Option<HttpResponse>)
Implementations§
Source§impl OidcClientError
impl OidcClientError
Sourcepub fn is_error(&self) -> bool
pub fn is_error(&self) -> bool
Checks if the Error is OidcClientError::Error
Sourcepub fn is_type_error(&self) -> bool
pub fn is_type_error(&self) -> bool
Checks if the Error is OidcClientError::TypeError
Sourcepub fn is_rp_error(&self) -> bool
pub fn is_rp_error(&self) -> bool
Checks if the Error is OidcClientError::RPError
Sourcepub fn is_op_error(&self) -> bool
pub fn is_op_error(&self) -> bool
Checks if the Error is OidcClientError::OPError
Sourcepub fn error(self) -> ErrorWithResponse<Error>
pub fn error(self) -> ErrorWithResponse<Error>
Returns the ErrorWithResponse<Error>
Note: panics if called on the wrong enum
Sourcepub fn type_error(self) -> ErrorWithResponse<TypeError>
pub fn type_error(self) -> ErrorWithResponse<TypeError>
Returns the ErrorWithResponse<TypeError>
Note: panics if called on the wrong enum
Sourcepub fn rp_error(self) -> ErrorWithResponse<RPError>
pub fn rp_error(self) -> ErrorWithResponse<RPError>
Returns the ErrorWithResponse<RPError>
Note: panics if called on the wrong enum
Sourcepub fn op_error(self) -> ErrorWithResponse<StandardBodyError>
pub fn op_error(self) -> ErrorWithResponse<StandardBodyError>
Returns the ErrorWithResponse<StandardBodyError>
Note: panics if called on the wrong enum
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OidcClientError
impl RefUnwindSafe for OidcClientError
impl Send for OidcClientError
impl Sync for OidcClientError
impl Unpin for OidcClientError
impl UnwindSafe for OidcClientError
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