aboutsummaryrefslogtreecommitdiff
path: root/src/adapter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/adapter.rs')
-rw-r--r--src/adapter.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/adapter.rs b/src/adapter.rs
new file mode 100644
index 0000000..567e1cd
--- /dev/null
+++ b/src/adapter.rs
@@ -0,0 +1,7 @@
+use anyhow::Result;
+use crate::*;
+
+pub trait Adapter {
+ fn new(&self, parent: &diplonat::Diplonat) -> Result<()>;
+ fn run(&self) -> Result<()>;
+}