pub struct EncryptionManager { /* private fields */ }Implementations§
Source§impl EncryptionManager
impl EncryptionManager
pub fn new() -> Self
pub async fn encrypt_file( &self, path: &Path, config: &EncryptionConfig, ) -> Result<(Option<PathBuf>, Option<EncryptionMetadata>), EncryptionError>
pub async fn decrypt_file( &self, encrypted_path: &Path, metadata: &EncryptionMetadata, ) -> Result<PathBuf, EncryptionError>
Auto Trait Implementations§
impl Freeze for EncryptionManager
impl RefUnwindSafe for EncryptionManager
impl Send for EncryptionManager
impl Sync for EncryptionManager
impl Unpin for EncryptionManager
impl UnwindSafe for EncryptionManager
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