Skip to main content

select_from_options_with_io_and_timeout

Function select_from_options_with_io_and_timeout 

Source
pub fn select_from_options_with_io_and_timeout<T: InputOutput>(
    prompt: &str,
    options: &[(String, String)],
    io: &T,
    timeout: Duration,
) -> Result<String, Error>
Expand description

Testable version of select_from_options with configurable timeout

ยงErrors

Returns an error if no options provided, input operations fail, maximum retries exceeded, or timeout occurs