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§
Source§impl Backend for Stdio
impl Backend for Stdio
Source§fn 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.
Source§fn 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.
Source§fn show_question(&self, question: &Question) -> Result<Choice>
fn show_question(&self, question: &Question) -> Result<Choice>
Shows the given question dialog and returns the choice.
Source§fn show_file_selection(
&self,
file_selection: &FileSelection,
) -> Result<Option<String>>
fn show_file_selection( &self, file_selection: &FileSelection, ) -> Result<Option<String>>
Shows the given file selection dialog and returns the file name.
Auto Trait Implementations§
impl Freeze for Stdio
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnwindSafe for Stdio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more