aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-23 19:52:59 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-23 19:52:59 +0000
commitac55e590475fb68f29071fc06ded8f6d6bf5db22 (patch)
tree5cd73705a58232f10e9dd0943f2f503517356227 /src/common/errors.rs
parentMerge changes from main (diff)
downloadsl0ppij-ac55e590475fb68f29071fc06ded8f6d6bf5db22.tar.gz
sl0ppij-ac55e590475fb68f29071fc06ded8f6d6bf5db22.tar.xz
sl0ppij-ac55e590475fb68f29071fc06ded8f6d6bf5db22.zip
Initial implementation of the update callback + upstream termion
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index b5b96342..11d13c7e 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -278,6 +278,7 @@ use crate::wasm_vm::PluginInstruction;
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum PluginContext {
Load,
+ Update,
Render,
Input,
GlobalInput,
@@ -290,6 +291,7 @@ impl From<&PluginInstruction> for PluginContext {
fn from(plugin_instruction: &PluginInstruction) -> Self {
match *plugin_instruction {
PluginInstruction::Load(..) => PluginContext::Load,
+ PluginInstruction::Update(_) => PluginContext::Update,
PluginInstruction::Render(..) => PluginContext::Render,
PluginInstruction::Input(..) => PluginContext::Input,
PluginInstruction::GlobalInput(_) => PluginContext::GlobalInput,