pub struct FileVault { /* private fields */ }Expand description
One encrypted file holding every secret of the client, under a random master key.
Implementations§
Source§impl FileVault
impl FileVault
pub fn open( path: impl Into<PathBuf>, master: Box<dyn MasterKeySource>, ) -> Result<Self>
Sourcepub fn open_default(dir: &Path, service: &str) -> Result<Self>
pub fn open_default(dir: &Path, service: &str) -> Result<Self>
The vault in dir: master key in the keychain when this build has one and it works,
else in a key file. The choice is written down and kept (see the module docs).
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileVault
impl !RefUnwindSafe for FileVault
impl !UnwindSafe for FileVault
impl Send for FileVault
impl Sync for FileVault
impl Unpin for FileVault
impl UnsafeUnpin for FileVault
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