aboutsummaryrefslogtreecommitdiffstats
path: root/zone_core/src/storage/snapshots.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-05-06 14:27:17 -0500
committerToby Vincent <tobyv13@gmail.com>2022-05-06 14:27:17 -0500
commitcdb45e032b078156eddbd47cb350c6ae66a64098 (patch)
tree796dc0597c410d23053e72e0af9d23a6cb26313e /zone_core/src/storage/snapshots.rs
parent730305eb1a6f9615dccb9bd94b1c371bba003615 (diff)
refactor: generalize zfs impl into storage traits
Diffstat (limited to 'zone_core/src/storage/snapshots.rs')
-rw-r--r--zone_core/src/storage/snapshots.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/zone_core/src/storage/snapshots.rs b/zone_core/src/storage/snapshots.rs
new file mode 100644
index 0000000..00a4e37
--- /dev/null
+++ b/zone_core/src/storage/snapshots.rs
@@ -0,0 +1,7 @@
+use crate::Container;
+
+pub trait Snapshots {
+ type Error;
+
+ fn new(&self, container: Container) -> Result<(), Self::Error>;
+}