aboutsummaryrefslogtreecommitdiff
path: root/src/backends/mod.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-08 03:49:42 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-08 04:54:39 +0100
commitfce7d2b9bf30e09b615dbd77b4dd7db94d623bfb (patch)
tree5a762e9b1147329c73234e7e06aab73a3970d911 /src/backends/mod.rs
parentec84c425282c3fd26f5e862b7864ad2ae7ec1e2e (diff)
downloaddialog-rs-fce7d2b9bf30e09b615dbd77b4dd7db94d623bfb.tar.gz
dialog-rs-fce7d2b9bf30e09b615dbd77b4dd7db94d623bfb.tar.bz2
Add question dialog boxes
Diffstat (limited to 'src/backends/mod.rs')
-rw-r--r--src/backends/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/backends/mod.rs b/src/backends/mod.rs
index 1abb8d1..12a178b 100644
--- a/src/backends/mod.rs
+++ b/src/backends/mod.rs
@@ -22,4 +22,7 @@ pub trait Backend {
/// Shows the given message dialog.
fn show_message(&self, message: &super::Message) -> Result<()>;
+
+ /// Shows the given question dialog and returns the choice.
+ fn show_question(&self, question: &super::Question) -> Result<super::Choice>;
}