pub struct KeyService { /* private fields */ }Expand description
Service for managing encryption keys.
Implementations§
Source§impl KeyService
impl KeyService
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new key service with hardcoded keys and keys from standard directories.
Sourcepub fn load_key_file(&mut self, path: &Path) -> Result<usize, CryptoError>
pub fn load_key_file(&mut self, path: &Path) -> Result<usize, CryptoError>
Load keys from a file.
Sourcepub fn load_from_standard_dirs(&mut self) -> Result<usize, CryptoError>
pub fn load_from_standard_dirs(&mut self) -> Result<usize, CryptoError>
Load keys from standard directories.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyService
impl RefUnwindSafe for KeyService
impl Send for KeyService
impl Sync for KeyService
impl Unpin for KeyService
impl UnsafeUnpin for KeyService
impl UnwindSafe for KeyService
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