summaryrefslogtreecommitdiff
path: root/src/iterator.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-03-14 20:37:26 -0400
committerMica White <botahamec@outlook.com>2026-03-14 20:37:26 -0400
commitd9095d8fce59714f75019ecf68911d9931a1af15 (patch)
tree7f466b2d61b437c5b6721aa030a7518cf7e690eb /src/iterator.rs
parentfbdfc775bd1642a469f8a3fa0aa9beb91ca760d6 (diff)
Basic scoped lock and guard implementations
Diffstat (limited to 'src/iterator.rs')
-rw-r--r--src/iterator.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/iterator.rs b/src/iterator.rs
new file mode 100644
index 0000000..30b01e0
--- /dev/null
+++ b/src/iterator.rs
@@ -0,0 +1,18 @@
+mod consumed_guard;
+mod guard;
+mod iterator;
+
+pub struct LockingIterator<L, Key> {
+ key: Key,
+ lockable: L,
+}
+
+pub struct IteratorGuard<'a, Guard, Key> {
+ _key: &'a Key,
+ guard: Guard,
+}
+
+pub struct ConsumedIteratorGuard<Guard, Key> {
+ key: Key,
+ guard: Guard,
+}