pub struct Config { /* private fields */ }Expand description
A configuration.
To get a configuration, you normally convert a parsed
configuration file to a configuration using
ConfigFile::to_config.
Implementations§
Source§impl Config
impl Config
Sourcepub fn to_config_file(&self) -> Result<ConfigFile>
pub fn to_config_file(&self) -> Result<ConfigFile>
Converts the configuration to a configuration file.
Warning: Don’t update a configuration file by reading it
using, e.g., ConfigFile::parse_home, converting it back to
a ConfigFile using this function, and then writing it to
disk. That is a lossy operation: it loses comments, and any
ignore_invalid values.
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.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.