pub struct PassphraseCustody<T> { /* private fields */ }Expand description
Passphrase file custody for StoreKeyring or MemberIdentity (E1).
The composition root supplies the corresponding reserved AtomicFile.
Implementations§
Source§impl<T> PassphraseCustody<T>
impl<T> PassphraseCustody<T>
Sourcepub fn new(passphrase: Passphrase, file: AtomicFile, store: StoreId) -> Self
pub fn new(passphrase: Passphrase, file: AtomicFile, store: StoreId) -> Self
Retain the passphrase until the session opens. Construction performs no IO. Successful unlocking erases the passphrase and keeps its derived key.
Trait Implementations§
Source§impl<T: KeyMaterial> Custody<T> for PassphraseCustody<T>
impl<T: KeyMaterial> Custody<T> for PassphraseCustody<T>
Auto Trait Implementations§
impl<T> !Freeze for PassphraseCustody<T>
impl<T> RefUnwindSafe for PassphraseCustody<T>
impl<T> Send for PassphraseCustody<T>
impl<T> Sync for PassphraseCustody<T>
impl<T> Unpin for PassphraseCustody<T>
impl<T> UnsafeUnpin for PassphraseCustody<T>
impl<T> UnwindSafe for PassphraseCustody<T>
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