pub struct PinentryBuilder { /* private fields */ }
Expand description

Builder for pinentry execution

Implementations

Set the descriptive text of the prompt

Set the text that gets the displayed in case of error

Override the path to the pinentry executable (by default just pinentry, looked up using PATH environment variable)

Set the label of the ‘Cancel’ button

Set the label of the ‘Not OK’ button

Set the label of the ‘OK’ button

Set timeout for prompt (in seconds)

Set the window title of the prompt

Prompt for confirmation

The text for the confirmation should be set using .description()

Prompt for a PIN

Show a message

The text for the message should be set using .description()

Trait Implementations

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.