[][src]Trait dialog::DialogBox

pub trait DialogBox {
    type Output;
    fn show_with<B: ?Sized>(
        &self,
        backend: impl AsRef<B>
    ) -> Result<Self::Output>
    where
        B: Backend
; fn show(&self) -> Result<Self::Output> { ... } }

A dialog box that can be shown using a backend.

Some dialog boxes might return data of the type Output.

Associated Types

type Output

The type of the data returned by the dialog box.

Loading content...

Required methods

fn show_with<B: ?Sized>(&self, backend: impl AsRef<B>) -> Result<Self::Output> where
    B: Backend

Shows this dialog box using the given backend and returns the output.

Loading content...

Provided methods

fn show(&self) -> Result<Self::Output>

Shows this dialog box using the default backend and returns the output.

box.show() is a shorthand for box.show_with(default_backend()).

Loading content...

Implementors

impl DialogBox for FileSelection[src]

type Output = Option<String>

impl DialogBox for Input[src]

type Output = Option<String>

impl DialogBox for Message[src]

type Output = ()

impl DialogBox for Password[src]

type Output = Option<String>

impl DialogBox for Question[src]

type Output = Choice

Loading content...