pub struct SignerError(/* private fields */);Available on crate feature
jwt only.Expand description
A host’s ES256 backend could not produce a signature.
One opaque type rather than an enum, and no source error: the caller in
JwtConfig::sign_access_token has exactly one reaction to any of them (mint no token, answer
server_error), so distinguishing “the KMS was unreachable” from “the key was disabled” here
would only invite somebody to treat one as recoverable on a path where neither is. The host
already has the real detail, because the host wrote the signer.
The message MUST NOT contain key material; nothing in this crate ever prints it on the wire.
Implementations§
Trait Implementations§
Source§impl Clone for SignerError
impl Clone for SignerError
Source§fn clone(&self) -> SignerError
fn clone(&self) -> SignerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignerError
impl Debug for SignerError
Source§impl Display for SignerError
impl Display for SignerError
impl Eq 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 PartialEq for SignerError
impl PartialEq for SignerError
impl StructuralPartialEq for SignerError
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