pub struct Stdio {}
Expand description
The fallback backend using standard input and output.
This backend is intended as a fallback backend to use if no other backend is available. The dialogs are printed to the standard output and user input is read from the standard input.
Implementations
Trait Implementations
sourceimpl Backend for Stdio
impl Backend for Stdio
sourcefn show_input(&self, input: &Input) -> Result<Option<String>>
fn show_input(&self, input: &Input) -> Result<Option<String>>
Shows the given input dialog and returns the input.
sourcefn show_message(&self, message: &Message) -> Result<()>
fn show_message(&self, message: &Message) -> Result<()>
Shows the given message dialog.
sourcefn show_password(&self, password: &Password) -> Result<Option<String>>
fn show_password(&self, password: &Password) -> Result<Option<String>>
Shows the given password dialog and returns the password.
sourcefn show_question(&self, question: &Question) -> Result<Choice>
fn show_question(&self, question: &Question) -> Result<Choice>
Shows the given question dialog and returns the choice.
Auto Trait Implementations
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnwindSafe for Stdio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more