Struct pinentry::PassphraseInput[][src]

pub struct PassphraseInput<'a> { /* fields omitted */ }
Expand description

A dialog for requesting a passphrase from the user.

Implementations

Creates a new PassphraseInput using the binary named pinentry.

Returns None if pinentry cannot be found in PATH.

Creates a new PassphraseInput using the given path to, or name of, a pinentry binary.

Returns None if:

  • A path was provided that does not exist.
  • A binary name was provided that cannot be found in PATH.
  • The binary is found but is not executable.

Prevents the user from submitting an empty passphrase.

The provided error text will be displayed if the user submits an empty passphrase. The dialog will remain open until the user either submits a non-empty passphrase, or selects the “Cancel” button.

Sets the window title.

When using this feature you should take care that the window is still identifiable as the pinentry.

Sets the descriptive text to display.

Sets the error text to display.

This is used to display an error message, for example on a second interaction if the first passphrase was invalid.

Sets the prompt to show.

When asking for a passphrase or PIN, this sets the text just before the widget for passphrase entry.

You should use an underscore in the text only if you know that a modern version of pinentry is used. Modern versions underline the next character after the underscore and use the first such underlined character as a keyboard accelerator. Use a double underscore to escape an underscore.

Enables confirmation prompting.

When asking for a passphrase or PIN, this sets the text just before the widget for the passphrase confirmation entry.

You should use an underscore in the text only if you know that a modern version of pinentry is used. Modern versions underline the next character after the underscore and use the first such underlined character as a keyboard accelerator. Use a double underscore to escape an underscore.

Sets the text for the button signalling confirmation (the “OK” button).

You should use an underscore in the text only if you know that a modern version of pinentry is used. Modern versions underline the next character after the underscore and use the first such underlined character as a keyboard accelerator. Use a double underscore to escape an underscore.

Sets the text for the button signaling cancellation or disagreement (the “Cancel” button).

You should use an underscore in the text only if you know that a modern version of pinentry is used. Modern versions underline the next character after the underscore and use the first such underlined character as a keyboard accelerator. Use a double underscore to escape an underscore.

Sets the timeout (in seconds) before returning an error.

Asks for a passphrase or PIN.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.