diff --git a/libimagstore/src/single_use_lock.rs b/libimagstore/src/single_use_lock.rs new file mode 100644 index 00000000..57513915 --- /dev/null +++ b/libimagstore/src/single_use_lock.rs @@ -0,0 +1,5 @@ +pub trait SingleUseLock { + fn access(&self) -> &T; + fn unlock(self) -> T; +} +