Struct age::cli_common::UiCallbacks
source · [−]pub struct UiCallbacks;
Available on crate feature
cli-common
only.Expand description
Implementation of age callbacks that makes requests to the user via the UI.
Trait Implementations
sourceimpl Callbacks for UiCallbacks
impl Callbacks for UiCallbacks
sourcefn display_message(&self, message: &str)
fn display_message(&self, message: &str)
Shows a message to the user. Read more
sourcefn confirm(
&self,
message: &str,
yes_string: &str,
no_string: Option<&str>
) -> Option<bool>
fn confirm(
&self,
message: &str,
yes_string: &str,
no_string: Option<&str>
) -> Option<bool>
Requests that the user provides confirmation for some action. Read more
sourcefn request_public_string(&self, description: &str) -> Option<String>
fn request_public_string(&self, description: &str) -> Option<String>
Requests non-private input from the user. Read more
sourcefn request_passphrase(&self, description: &str) -> Option<SecretString>
fn request_passphrase(&self, description: &str) -> Option<SecretString>
Requests a passphrase to decrypt a key.
sourceimpl Clone for UiCallbacks
impl Clone for UiCallbacks
sourcefn clone(&self) -> UiCallbacks
fn clone(&self) -> UiCallbacks
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for UiCallbacks
Auto Trait Implementations
impl RefUnwindSafe for UiCallbacks
impl Send for UiCallbacks
impl Sync for UiCallbacks
impl Unpin for UiCallbacks
impl UnwindSafe for UiCallbacks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more