Enum oxide_auth::code_grant::accesstoken::Error
source · pub enum Error {
Invalid(ErrorDescription),
Unauthorized(ErrorDescription, String),
Primitive(Box<PrimitiveError>),
}
Expand description
Defines actions for the response to an access token request.
Variants§
Invalid(ErrorDescription)
The token did not represent a valid token.
The client did not properly authorize itself.
Primitive(Box<PrimitiveError>)
An underlying primitive operation did not complete successfully.
This is expected to occur with some endpoints. See PrimitiveError
for
more details on when this is returned.
Implementations§
source§impl Error
impl Error
Create unauthorized error type
sourcepub fn description(&mut self) -> Option<&mut AccessTokenError>
pub fn description(&mut self) -> Option<&mut AccessTokenError>
Get a handle to the description the client will receive.
Some types of this error don’t return any description which is represented by a None
result.
Trait Implementations§
Auto Trait Implementations§
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