diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-11 19:55:29 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-11 19:55:29 +0000 |
| commit | 01df6ed56881c0d65761391f0ccb427d14f8b6cb (patch) | |
| tree | 973cb5c8bc665639f1fb05f8c952f145c0af3088 /src/errors.rs | |
| parent | Added the set_selectable plugin API function (diff) | |
| download | sl0ppij-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.rs | 4 |
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, } |
