summaryrefslogtreecommitdiff
path: root/src/iterator.rs
blob: 30b01e01d29528899135c9fb306cc896ab09ef7d (plain)
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,
}