Struct rustls_cng::key::NCryptKey
source · pub struct NCryptKey(/* private fields */);
Expand description
CNG private key wrapper
Implementations§
source§impl NCryptKey
impl NCryptKey
sourcepub fn new_owned(handle: NCRYPT_KEY_HANDLE) -> Self
pub fn new_owned(handle: NCRYPT_KEY_HANDLE) -> Self
Create an owned instance which frees the underlying handle automatically
sourcepub fn new_borrowed(handle: NCRYPT_KEY_HANDLE) -> Self
pub fn new_borrowed(handle: NCRYPT_KEY_HANDLE) -> Self
Create a borrowed instance which doesn’t free the key handle
sourcepub fn algorithm_group(&self) -> Result<AlgorithmGroup>
pub fn algorithm_group(&self) -> Result<AlgorithmGroup>
Return algorithm group of the key
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NCryptKey
impl RefUnwindSafe for NCryptKey
impl Send for NCryptKey
impl Sync for NCryptKey
impl Unpin for NCryptKey
impl UnwindSafe for NCryptKey
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
)