pub enum SignerError {
Backend(String),
InvalidKeyId(String),
MissingEnv(&'static str),
UnexpectedPublicKey(String),
}Expand description
Errors a signer backend can produce.
Variants§
Backend(String)
The backend rejected the call (e.g. AccessDenied, KeyDisabled).
The string is the backend’s own error message, surfaced as-is.
InvalidKeyId(String)
The configured key id was empty or malformed.
MissingEnv(&'static str)
Required environment variable missing.
UnexpectedPublicKey(String)
The backend returned a public key in an unexpected encoding.
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()
Source§impl From<SignerError> for RotationError
impl From<SignerError> for RotationError
Source§fn from(source: SignerError) -> Self
fn from(source: SignerError) -> Self
Converts to this type from the input type.
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