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

Command-line implementation of ConversationHandler

This struct is unavailable if pam-client is built without the "cli" feature.

Prompts, info and error messages will be written to STDERR, non-secret input in read from STDIN and rpassword is used to prompt the user for passwords.

Limitations

Please note that UTF-8 encoding is assumed for terminal I/O, so this handler may fail to authenticate on legacy non-UTF-8 systems when the user input contains non-ASCII characters.

Implementations

Creates a new CLI conversation handler.

The prefix text written before info text

Updates the prefix put before info text

The prefix text written before error messages

Updates the prefix put before error messages

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Obtains a string whilst echoing text (e.g. username) Read more

Obtains a string without echoing any text (e.g. password) Read more

Displays some text.

Displays an error message.

Called by Context directly after taking ownership of the handler. Read more

Obtains a yes/no answer (Linux specific). Read more

Exchanges binary data (Linux specific, experimental). Read more

Formats the value using the given formatter. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.