var searchIndex = {}; searchIndex["namedlock"] = {"doc":"Namespaces for named locks.","items":[[3,"LockSpaceGuard","namedlock","An RAII implementation of a "scoped lock" of a a LockSpace value. When this\nstructure is dropped (falls out of scope), the lock will be unlocked, and\nthe reference count to the key will be decreased by 1.",null,null],[3,"LockSpace","","A `LockSpace<K,V>` holds many `Mutex<V>`'s, keyed by `K`.",null,null],[4,"Cleanup","","",null,null],[13,"KeepUnused","","",0,null],[13,"AutoCleanup","","",0,null],[4,"LockSpaceRemoveResult","","",null,null],[13,"Success","","",1,null],[13,"NotFound","","",1,null],[13,"PoisonError","","",1,null],[13,"WouldBlock","","`remove()` would block.",1,null],[0,"lockresult","","A `Result` type very similar to `std::sync::LockResult`.",null,null],[3,"PoisonError","namedlock::lockresult","",null,null],[6,"LockResult","","A `Result` type very similar to `std::sync::LockResult`.",null,null],[11,"fmt","","",2,null],[11,"from","","",2,{"inputs":[{"name":"poisonerror"}],"output":{"name":"poisonerror"}}],[0,"ownedmutexguard","namedlock","Mutex guards that own the Mutex.",null,null],[3,"OwnedMutexGuard","namedlock::ownedmutexguard","An RAII implementation of a "scoped lock" of a mutex. When this structure\nis dropped (falls out of scope), the lock will be unlocked, and the\nowner of the Mutex will be dropped.",null,null],[8,"OwnedMutex","","Implements the functions to obtain `OwnedMutexGuard`s.",null,null],[11,"owned_lock","","Acquires an `OwnedMutex`, blocking the current thread until it is able to do so.",3,null],[11,"deref","","",4,null],[11,"deref_mut","","",4,null],[11,"drop","","",4,null],[11,"into_inner","","Drops the guard and returns the associated `OwnedMutex`",4,null],[11,"deref","namedlock","",5,null],[11,"deref_mut","","",5,null],[11,"drop","","",5,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"clone","","",6,null],[11,"new","","Create a new LockSpace.",6,{"inputs":[{"name":"cleanup"}],"output":{"name":"lockspace"}}],[11,"lock","","Find the object by `key`, or create it by calling `initial` if it does\nnot exist. Then, lock it and return a LockSpaceGuard over the object.\nOnce the guard is dropped, its object is unlocked, and if `AutoCleanup`\nis specified for this space, removed if this is the last use.",6,null],[11,"with_lock","","Find the object by `key`, or create it by calling `initial` if it does\nnot exist. Then, call `f` on that object.",6,null],[11,"try_remove","","Find the object by `key`, then delete it if it is not actively being\nused. If it is actually being used, `WouldBlock` will be returned.",6,null]],"paths":[[4,"Cleanup"],[4,"LockSpaceRemoveResult"],[3,"PoisonError"],[8,"OwnedMutex"],[3,"OwnedMutexGuard"],[3,"LockSpaceGuard"],[3,"LockSpace"]]}; initSearch(searchIndex);