Struct rustls_cng::cert::CertContext
source · pub struct CertContext(/* private fields */);
Expand description
CertContext wraps CERT_CONTEXT structure for high-level certificate operations
Implementations§
source§impl CertContext
impl CertContext
sourcepub fn new_owned(context: *const CERT_CONTEXT) -> Self
pub fn new_owned(context: *const CERT_CONTEXT) -> Self
Construct CertContext as an owned object which automatically frees the inner handle
sourcepub fn new_borrowed(context: *const CERT_CONTEXT) -> Self
pub fn new_borrowed(context: *const CERT_CONTEXT) -> Self
Construct CertContext as a borrowed object which does not free the inner handle
sourcepub fn acquire_key(&self) -> Result<NCryptKey>
pub fn acquire_key(&self) -> Result<NCryptKey>
Attempt to silently acquire a CNG private key from this context.
Trait Implementations§
source§impl Clone for CertContext
impl Clone for CertContext
source§fn clone(&self) -> CertContext
fn clone(&self) -> CertContext
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 CertContext
impl RefUnwindSafe for CertContext
impl Send for CertContext
impl Sync for CertContext
impl Unpin for CertContext
impl UnwindSafe for CertContext
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)