pub enum ClientCertificateError {
EmptyChain,
InvalidCertificate {
index: usize,
},
UnsupportedKey,
NoCompatibleScheme,
SigningFailed {
scheme: TlsSigScheme,
reason: String,
},
KeyMismatch {
scheme: TlsSigScheme,
},
}Expand description
Why ClientCertificate::validate rejected a certificate.
Variants§
EmptyChain
The chain contains no certificates.
InvalidCertificate
A certificate in the chain is not valid X.509 DER.
UnsupportedKey
The leaf’s key is neither RSA nor ECDSA on P-256 or P-384.
NoCompatibleScheme
The signer advertises no scheme that matches the leaf’s key.
SigningFailed
The signer failed to sign the test message.
Fields
§
scheme: TlsSigSchemeThe scheme the signature was requested with.
KeyMismatch
The signer’s signature does not verify with the leaf certificate’s key.
Fields
§
scheme: TlsSigSchemeThe scheme the signature was made with.
Trait Implementations§
Source§impl Debug for ClientCertificateError
impl Debug for ClientCertificateError
Source§impl Display for ClientCertificateError
impl Display for ClientCertificateError
impl Eq for ClientCertificateError
Source§impl Error for ClientCertificateError
impl Error for ClientCertificateError
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 ClientCertificateError
impl PartialEq for ClientCertificateError
impl StructuralPartialEq for ClientCertificateError
Auto Trait Implementations§
impl Freeze for ClientCertificateError
impl RefUnwindSafe for ClientCertificateError
impl Send for ClientCertificateError
impl Sync for ClientCertificateError
impl Unpin for ClientCertificateError
impl UnsafeUnpin for ClientCertificateError
impl UnwindSafe for ClientCertificateError
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more