pub struct CredentialError { /* private fields */ }Expand description
Represents an error creating or using a Credential.
This error type indicates issues encountered while trying to create or use a
Credential.
Implementations§
Source§impl CredentialError
impl CredentialError
Sourcepub fn new(is_retryable: bool, source: Box<dyn Error + Send + Sync>) -> Self
pub fn new(is_retryable: bool, source: Box<dyn Error + Send + Sync>) -> Self
Creates a new CredentialError.
§Arguments
is_retryable- A boolean indicating whether the error is retryable.source- The underlying error that caused the auth failure.
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Returns true if the error is retryable; otherwise returns false.
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()
Auto Trait Implementations§
impl Freeze for CredentialError
impl !RefUnwindSafe for CredentialError
impl Send for CredentialError
impl Sync for CredentialError
impl Unpin for CredentialError
impl !UnwindSafe 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