pub struct UnifiedPassphraseProvider { /* private fields */ }Expand description
A passphrase provider that prompts exactly once regardless of how many distinct prompt messages are presented. Every call after the first is a cache hit. Designed for multi-key operations (e.g. device link) where the same passphrase protects all keys in the operation.
Implementations§
Trait Implementations§
Source§impl PassphraseProvider for UnifiedPassphraseProvider
impl PassphraseProvider for UnifiedPassphraseProvider
Source§fn get_passphrase(
&self,
prompt_message: &str,
) -> Result<Zeroizing<String>, AgentError>
fn get_passphrase( &self, prompt_message: &str, ) -> Result<Zeroizing<String>, AgentError>
Securely obtains a passphrase, potentially by prompting the user. Read more
Source§fn on_incorrect_passphrase(&self, _prompt_message: &str)
fn on_incorrect_passphrase(&self, _prompt_message: &str)
Notifies the provider that the passphrase returned for
prompt_message was wrong. Read moreAuto Trait Implementations§
impl !Freeze for UnifiedPassphraseProvider
impl !RefUnwindSafe for UnifiedPassphraseProvider
impl Send for UnifiedPassphraseProvider
impl Sync for UnifiedPassphraseProvider
impl Unpin for UnifiedPassphraseProvider
impl UnsafeUnpin for UnifiedPassphraseProvider
impl !UnwindSafe for UnifiedPassphraseProvider
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