Struct schannel::cert_context::AcquirePrivateKeyOptions
source · pub struct AcquirePrivateKeyOptions<'a> { /* private fields */ }
Expand description
A builder type for certificate private key lookup.
Implementations§
source§impl<'a> AcquirePrivateKeyOptions<'a>
impl<'a> AcquirePrivateKeyOptions<'a>
sourcepub fn compare_key(
&mut self,
compare_key: bool
) -> &mut AcquirePrivateKeyOptions<'a>
pub fn compare_key( &mut self, compare_key: bool ) -> &mut AcquirePrivateKeyOptions<'a>
If set, the certificate’s public key will be compared with the private key to ensure a match.
sourcepub fn silent(&mut self, silent: bool) -> &mut AcquirePrivateKeyOptions<'a>
pub fn silent(&mut self, silent: bool) -> &mut AcquirePrivateKeyOptions<'a>
If set, the lookup will not display any user interface, even if that causes the lookup to fail.
sourcepub fn acquire(&self) -> Result<PrivateKey>
pub fn acquire(&self) -> Result<PrivateKey>
Acquires the private key handle.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AcquirePrivateKeyOptions<'a>
impl<'a> Send for AcquirePrivateKeyOptions<'a>
impl<'a> Sync for AcquirePrivateKeyOptions<'a>
impl<'a> Unpin for AcquirePrivateKeyOptions<'a>
impl<'a> UnwindSafe for AcquirePrivateKeyOptions<'a>
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