pub struct VerifiedTlsClientCert(pub Option<CertificateDer<'static>>);Expand description
The verified end-entity client certificate from an mTLS connection.
During the mTLS handshake the client presents its cert chain leaf-first;
this is that leaf (end-entity) cert, after it passed verification against
the server’s configured ClientCertVerifier. The rest of the chain is
discarded: the client typically doesn’t send the CA cert, and we only need
the end-entity cert to identify the client.
None if the client presented no certificate (non-mTLS connection).
Tuple Fields§
§0: Option<CertificateDer<'static>>Trait Implementations§
Source§impl Clone for VerifiedTlsClientCert
impl Clone for VerifiedTlsClientCert
Source§fn clone(&self) -> VerifiedTlsClientCert
fn clone(&self) -> VerifiedTlsClientCert
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 moreAuto Trait Implementations§
impl Freeze for VerifiedTlsClientCert
impl RefUnwindSafe for VerifiedTlsClientCert
impl Send for VerifiedTlsClientCert
impl Sync for VerifiedTlsClientCert
impl Unpin for VerifiedTlsClientCert
impl UnsafeUnpin for VerifiedTlsClientCert
impl UnwindSafe for VerifiedTlsClientCert
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