Trait dialog::DialogBox

source ·
pub trait DialogBox {
    type Output;

    fn show_with(&self, backend: &impl Backend) -> Result<Self::Output>;

    fn show(&self) -> Result<Self::Output> { ... }
}
Expand description

A dialog box that can be shown using a backend.

Some dialog boxes might return data of the type Output.

Required Associated Types

The type of the data returned by the dialog box.

Required Methods

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

Provided Methods

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

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

Implementors