aboutsummaryrefslogtreecommitdiffstats
path: root/src/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-01-11 19:55:29 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-01-11 19:55:29 +0000
commit01df6ed56881c0d65761391f0ccb427d14f8b6cb (patch)
tree973cb5c8bc665639f1fb05f8c952f145c0af3088 /src/errors.rs
parentAdded the set_selectable plugin API function (diff)
downloadsl0ppij-01df6ed56881c0d65761391f0ccb427d14f8b6cb.tar.gz
sl0ppij-01df6ed56881c0d65761391f0ccb427d14f8b6cb.tar.xz
sl0ppij-01df6ed56881c0d65761391f0ccb427d14f8b6cb.zip
Added a get_help function to the plugin API
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs
index bbe85ec8..cb483bbc 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -266,6 +266,8 @@ impl From<&PluginInstruction> for PluginContext {
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum AppContext {
+ GetState,
+ SetState,
Exit,
Error,
}
@@ -273,6 +275,8 @@ pub enum AppContext {
impl From<&AppInstruction> for AppContext {
fn from(app_instruction: &AppInstruction) -> Self {
match *app_instruction {
+ AppInstruction::GetState(_) => AppContext::GetState,
+ AppInstruction::SetState(_) => AppContext::SetState,
AppInstruction::Exit => AppContext::Exit,
AppInstruction::Error(_) => AppContext::Error,
}