pub struct StateEncryption { /* private fields */ }Expand description
Transparent encryption wrapper for file operations.
This provides a simple interface for encrypting/decrypting files transparently without changing the rest of the codebase.
Implementations§
Source§impl StateEncryption
impl StateEncryption
Sourcepub fn new(config: EncryptionConfig) -> Result<Self>
pub fn new(config: EncryptionConfig) -> Result<Self>
Create a new state encryption handler
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if encryption is enabled and we have a passphrase
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateEncryption
impl RefUnwindSafe for StateEncryption
impl Send for StateEncryption
impl Sync for StateEncryption
impl Unpin for StateEncryption
impl UnsafeUnpin for StateEncryption
impl UnwindSafe for StateEncryption
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