pub struct ClientCert(/* private fields */);Expand description
A client certificate.
Implementations§
Source§impl ClientCert
impl ClientCert
Sourcepub fn new_with_certs(
chain: &[Certificate<'static>],
key: PrivateKey<'static>,
) -> Self
pub fn new_with_certs( chain: &[Certificate<'static>], key: PrivateKey<'static>, ) -> Self
Creates a new client certificate from a chain and a private key.
Sourcepub fn certs(&self) -> &[Certificate<'static>]
pub fn certs(&self) -> &[Certificate<'static>]
Client certificate chain.
Sourcepub fn private_key(&self) -> &PrivateKey<'static>
pub fn private_key(&self) -> &PrivateKey<'static>
Client certificate private key.
Trait Implementations§
Source§impl Clone for ClientCert
impl Clone for ClientCert
Source§fn clone(&self) -> ClientCert
fn clone(&self) -> ClientCert
Returns a copy of the value. Read more
1.0.0 · 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 ClientCert
impl RefUnwindSafe for ClientCert
impl Send for ClientCert
impl Sync for ClientCert
impl Unpin for ClientCert
impl UnwindSafe for ClientCert
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