read_password

Function read_password 

Source
pub fn read_password(
    prompt: &str,
    timeout_opt: Option<Duration>,
) -> Result<Vec<u8>>
Expand description

Prompt for a password from a TTY, returning either the vector of bytes or an error (not a tty, timeout, etc.)