Skip to main content

confirm_with_io

Function confirm_with_io 

Source
pub fn confirm_with_io<T: InputOutput>(
    prompt: &str,
    io: &T,
) -> Result<bool, Error>
Expand description

Testable version of confirm that accepts an InputOutput trait

ยงErrors

Returns an error if input operations fail or maximum retries exceeded