pub struct CliPassphraseProvider;Expand description
A PassphraseProvider implementation that prompts the user on the command line.
Implementations§
Trait Implementations§
Source§impl Clone for CliPassphraseProvider
impl Clone for CliPassphraseProvider
Source§fn clone(&self) -> CliPassphraseProvider
fn clone(&self) -> CliPassphraseProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CliPassphraseProvider
impl Debug for CliPassphraseProvider
Source§impl Default for CliPassphraseProvider
impl Default for CliPassphraseProvider
Source§fn default() -> CliPassphraseProvider
fn default() -> CliPassphraseProvider
Returns the “default value” for a type. Read more
Source§impl PassphraseProvider for CliPassphraseProvider
impl PassphraseProvider for CliPassphraseProvider
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 by prompting the user on the terminal.
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 CliPassphraseProvider
impl RefUnwindSafe for CliPassphraseProvider
impl Send for CliPassphraseProvider
impl Sync for CliPassphraseProvider
impl Unpin for CliPassphraseProvider
impl UnsafeUnpin for CliPassphraseProvider
impl UnwindSafe for CliPassphraseProvider
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