pub enum SignerError {
MissingCredentials {
reason: String,
},
InvalidCredentials {
reason: String,
},
SigningFailed {
reason: String,
},
StorageUnavailable {
reason: String,
},
ExpiredToken {
reason: String,
},
WrongStrategy {
strategy: CredentialStrategy,
},
}Expand description
Signing failures returned by crate::Signer and crate::SignerFactory.
Variants§
MissingCredentials
No credentials are configured for the selected upstream.
InvalidCredentials
Credentials exist but cannot be used.
SigningFailed
Signing failed.
Credential storage is temporarily unavailable.
ExpiredToken
OAuth access token is expired or within the signer refresh skew window.
WrongStrategy
The factory was asked to build a signer for the wrong strategy.
Fields
§
strategy: CredentialStrategySelected auth strategy.
Trait Implementations§
Source§impl Debug for SignerError
impl Debug for SignerError
Source§impl Display for SignerError
impl Display for SignerError
Source§impl Error for SignerError
impl Error for SignerError
1.30.0 · 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 SignerError
impl RefUnwindSafe for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl UnsafeUnpin for SignerError
impl UnwindSafe for SignerError
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