pub enum TokenEndpointError {
Refused(TokenResponseError),
Unavailable(String),
}Expand description
Why a redemption did not produce a token.
#[error] text never carries the code, the verifier or the secret. This is
the first place any of those three could reach a message somebody pastes
into a bug report.
Variants§
Refused(TokenResponseError)
The server refused, or answered with something unusable.
The server could not be asked, or its answer could not be read.
Trait Implementations§
Source§impl Clone for TokenEndpointError
impl Clone for TokenEndpointError
Source§impl Debug for TokenEndpointError
impl Debug for TokenEndpointError
Source§impl Display for TokenEndpointError
impl Display for TokenEndpointError
impl Eq for TokenEndpointError
Source§impl Error for TokenEndpointError
impl Error for TokenEndpointError
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<TokenEndpointError> for RedeemError
impl From<TokenEndpointError> for RedeemError
Source§fn from(source: TokenEndpointError) -> Self
fn from(source: TokenEndpointError) -> Self
Converts to this type from the input type.
Source§impl From<TokenResponseError> for TokenEndpointError
impl From<TokenResponseError> for TokenEndpointError
Source§fn from(source: TokenResponseError) -> Self
fn from(source: TokenResponseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TokenEndpointError
impl PartialEq for TokenEndpointError
impl StructuralPartialEq for TokenEndpointError
Auto Trait Implementations§
impl Freeze for TokenEndpointError
impl RefUnwindSafe for TokenEndpointError
impl Send for TokenEndpointError
impl Sync for TokenEndpointError
impl Unpin for TokenEndpointError
impl UnsafeUnpin for TokenEndpointError
impl UnwindSafe for TokenEndpointError
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