pub struct ClientCert(pub Arc<(Vec<Certificate<'static>>, PrivateKey<'static>)>);Expand description
A client certificate.
Tuple Fields§
§0: Arc<(Vec<Certificate<'static>>, PrivateKey<'static>)>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.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)