diff options
Diffstat (limited to 'src/iterator.rs')
| -rw-r--r-- | src/iterator.rs | 18 |
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, +} |
