[][src]Struct schannel::crypt_prov::AcquireOptions

pub struct AcquireOptions { /* fields omitted */ }

A builder for CryptProvs.

Implementations

impl AcquireOptions[src]

pub fn new() -> AcquireOptions[src]

Returns a new builder with default settings.

pub fn container(&mut self, container: &str) -> &mut AcquireOptions[src]

Sets the name for this key container.

This should not be set if verify_context is set.

pub fn provider(&mut self, provider: &str) -> &mut AcquireOptions[src]

Sets the name of the CSP to be used.

pub fn verify_context(&mut self, verify_context: bool) -> &mut AcquireOptions[src]

If set, private keys will not be accessible or persisted.

pub fn new_keyset(&mut self, new_keyset: bool) -> &mut AcquireOptions[src]

If set, the container will be created.

pub fn machine_keyset(&mut self, machine_keyset: bool) -> &mut AcquireOptions[src]

If set, the container will be stored as a machine rather than user keys.

pub fn silent(&mut self, silent: bool) -> &mut AcquireOptions[src]

If set, an error will be returned if user intervention is required rather than displaying a dialog.

pub fn acquire(&self, type_: ProviderType) -> Result<CryptProv>[src]

Acquires a container.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.