[−][src]Struct dialog::backends::Dialog
The dialog
backend.
This backend uses the external dialog
program (not to be confused with this crate also called
dialog
) to display text-based dialog boxes in the terminal.
Methods
impl Dialog
[src]
pub fn new() -> Dialog
[src]
Creates a new Dialog
instance without configuration.
pub fn set_backtitle(&mut self, backtitle: impl Into<String>)
[src]
Sets the backtitle for the dialog boxes.
The backtitle is displayed on the backdrop, at the top of the screen.
pub fn set_height(&mut self, height: u32)
[src]
Sets the height of the dialog boxes.
The height is given in characters. The actual height of the dialog box might be higher than the given height if the content would not fit otherwise. The default height is zero.
pub fn set_width(&mut self, width: u32)
[src]
Sets the width of the dialog boxes.
The width is given in characters. The actual width of the dialog box might be higher than the given width if the content would not fit otherwise. The default width is zero.
Trait Implementations
impl Backend for Dialog
[src]
fn show_input(&self, input: &Input) -> Result<Option<String>>
[src]
fn show_message(&self, message: &Message) -> Result<()>
[src]
fn show_password(&self, password: &Password) -> Result<Option<String>>
[src]
fn show_question(&self, question: &Question) -> Result<Choice>
[src]
fn show_file_selection(
&self,
file_selection: &FileSelection
) -> Result<Option<String>>
[src]
&self,
file_selection: &FileSelection
) -> Result<Option<String>>
impl AsRef<Dialog> for Dialog
[src]
impl Default for Dialog
[src]
impl Debug for Dialog
[src]
Auto Trait Implementations
impl Send for Dialog
impl Sync for Dialog
impl Unpin for Dialog
impl UnwindSafe for Dialog
impl RefUnwindSafe for Dialog
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,