pub struct ContextBuilder { /* private fields */ }Expand description
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn home<H>(&mut self, home: H) -> &mut Self
pub fn home<H>(&mut self, home: H) -> &mut Self
Use an alternate sequoia home directory.
If None, uses the default.
Sourcepub fn config_file<P>(&mut self, path: P) -> &mut Self
pub fn config_file<P>(&mut self, path: P) -> &mut Self
Load an alternate configuration file.
By default, the configuration file in the Sequoia home directory is read. When set, the specified file is read instead.
Sourcepub fn disable_config_file(&mut self) -> &mut Self
pub fn disable_config_file(&mut self) -> &mut Self
Don’t load a configuration file.
By default, the configuration file in the Sequoia home directory is read. When reading the configuration file is disabled, the default configuration is used.
Sourcepub fn add_module<P>(&mut self, path: P) -> &mut Self
pub fn add_module<P>(&mut self, path: P) -> &mut Self
Adds the specified module to the set of PKCS#11 modules to load.
Sourcepub fn extend_modules<P>(&mut self, paths: impl Iterator<Item = P>) -> &mut Self
pub fn extend_modules<P>(&mut self, paths: impl Iterator<Item = P>) -> &mut Self
Adds the specified modules to the set of PKCS#11 modules to load.
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnsafeUnpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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