pub enum CredentialError {
Invalid(String),
Rejected {
url: Url,
status: StatusCode,
body: String,
},
Url(ParseError),
Http(Error),
Json(Error),
Io(Error),
External(Box<dyn StdError + Send + Sync>),
}Expand description
A credential source could not supply a usable credential.
Variants§
Invalid(String)
The source is misconfigured or supplied an unusable credential.
Rejected
The authorization server or a platform identity endpoint rejected a request.
Url(ParseError)
A URL for a credential request is malformed.
Http(Error)
A credential request could not be sent or its response read.
Json(Error)
A credential response or saved session was not the expected JSON.
Io(Error)
A saved session could not be read or written.
External(Box<dyn StdError + Send + Sync>)
A credential source supplied by the host application failed.
Implementations§
Trait Implementations§
Source§impl Debug for CredentialError
impl Debug for CredentialError
Source§impl Display for CredentialError
impl Display for CredentialError
Source§impl Error for CredentialError
impl Error for CredentialError
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<Error> for CredentialError
impl From<Error> for CredentialError
Source§impl From<Error> for CredentialError
impl From<Error> for CredentialError
Source§impl From<Error> for CredentialError
impl From<Error> for CredentialError
Source§impl From<Error> for CredentialError
impl From<Error> for CredentialError
Source§impl From<ParseError> for CredentialError
impl From<ParseError> for CredentialError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CredentialError
impl !UnwindSafe for CredentialError
impl Freeze for CredentialError
impl Send for CredentialError
impl Sync for CredentialError
impl Unpin for CredentialError
impl UnsafeUnpin for CredentialError
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