diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-21 17:51:30 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2020-05-21 17:51:30 +0200 |
commit | 4da459ce8ba49f98084a8ce32f600470ff883ec5 (patch) | |
tree | 608f9e93ca740f76ab3d751103f99e8c9c991e32 /src/adapter.rs | |
parent | feadc844c060ff0879d8d547807147ae2213fd13 (diff) | |
download | diplonat-4da459ce8ba49f98084a8ce32f600470ff883ec5.tar.gz diplonat-4da459ce8ba49f98084a8ce32f600470ff883ec5.zip |
Working on logic
Diffstat (limited to 'src/adapter.rs')
-rw-r--r-- | src/adapter.rs | 7 |
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<()>; +} |