Struct pam_client::conv_cli::Conversation[][src]

pub struct Conversation { /* fields omitted */ }

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

impl Conversation[src]

#[must_use]pub fn new() -> Self[src]

Creates a new CLI conversation handler.

#[must_use]pub fn info_prefix(&self) -> &str[src]

The prefix text written before info text

pub fn set_info_prefix(&mut self, prefix: impl Into<String>)[src]

Updates the prefix put before info text

#[must_use]pub fn error_prefix(&self) -> &str[src]

The prefix text written before error messages

pub fn set_error_prefix(&mut self, prefix: impl Into<String>)[src]

Updates the prefix put before error messages

Trait Implementations

impl Clone for Conversation[src]

impl ConversationHandler for Conversation[src]

impl Debug for Conversation[src]

impl Default for Conversation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.