#[non_exhaustive]pub struct SoftwareKeyStoreOptions {
pub allow_insecure_permissions: bool,
pub create_if_missing: bool,
}Available on crate feature
software only.Expand description
How to open a SoftwareKeyStore.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allow_insecure_permissions: boolOpen a file that other users can read or write.
By default a key store file with group or world permission bits is refused with
KeyStoreError::InsecurePermissions. The check runs on Unix only.
create_if_missing: boolCreate an empty key store if the file does not exist.
Implementations§
Source§impl SoftwareKeyStoreOptions
impl SoftwareKeyStoreOptions
Sourcepub fn allow_insecure_permissions(self, allow: bool) -> Self
pub fn allow_insecure_permissions(self, allow: bool) -> Self
Sourcepub fn create_if_missing(self, create: bool) -> Self
pub fn create_if_missing(self, create: bool) -> Self
Sets create_if_missing.
Trait Implementations§
Source§impl Clone for SoftwareKeyStoreOptions
impl Clone for SoftwareKeyStoreOptions
Source§impl Debug for SoftwareKeyStoreOptions
impl Debug for SoftwareKeyStoreOptions
Source§impl Default for SoftwareKeyStoreOptions
impl Default for SoftwareKeyStoreOptions
impl Eq for SoftwareKeyStoreOptions
Source§impl PartialEq for SoftwareKeyStoreOptions
impl PartialEq for SoftwareKeyStoreOptions
impl StructuralPartialEq for SoftwareKeyStoreOptions
Auto Trait Implementations§
impl Freeze for SoftwareKeyStoreOptions
impl RefUnwindSafe for SoftwareKeyStoreOptions
impl Send for SoftwareKeyStoreOptions
impl Sync for SoftwareKeyStoreOptions
impl Unpin for SoftwareKeyStoreOptions
impl UnsafeUnpin for SoftwareKeyStoreOptions
impl UnwindSafe for SoftwareKeyStoreOptions
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.