[−][src]Trait dialog::DialogBox
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.
Required methods
fn show_with<B: ?Sized>(&self, backend: impl AsRef<B>) -> Result<Self::Output> where
B: Backend,
B: Backend,
Shows this dialog box using the given backend and returns the output.
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())
.
Implementors
impl DialogBox for Input
[src]
type Output = Option<String>
fn show_with<B: ?Sized>(&self, backend: impl AsRef<B>) -> Result<Self::Output> where
B: Backend,
[src]
B: Backend,
impl DialogBox for Message
[src]
type Output = ()
fn show_with<B: ?Sized>(&self, backend: impl AsRef<B>) -> Result<Self::Output> where
B: Backend,
[src]
B: Backend,
impl DialogBox for Password
[src]
type Output = Option<String>
fn show_with<B: ?Sized>(&self, backend: impl AsRef<B>) -> Result<Self::Output> where
B: Backend,
[src]
B: Backend,