pub trait Guard<K>: Debugwhere K: Eq + PartialEq + Hash + Clone + Debug,{ // Required method fn key(&self) -> &K; }
A RAII implementation of a scoped lock for locks from a [LockPool]. When this instance is dropped (falls out of scope), the lock will be unlocked.
Returns the key locked by this guard