aboutsummaryrefslogtreecommitdiff
path: root/src/adapter.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-21 17:51:30 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-21 17:51:30 +0200
commit4da459ce8ba49f98084a8ce32f600470ff883ec5 (patch)
tree608f9e93ca740f76ab3d751103f99e8c9c991e32 /src/adapter.rs
parentfeadc844c060ff0879d8d547807147ae2213fd13 (diff)
downloaddiplonat-4da459ce8ba49f98084a8ce32f600470ff883ec5.tar.gz
diplonat-4da459ce8ba49f98084a8ce32f600470ff883ec5.zip
Working on logic
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<()>;
+}