var searchIndex = {}; searchIndex["rwlock2"] = {"doc":"# rwlock2","items":[[3,"PoisonError","rwlock2","A type of error which can be returned whenever a lock is acquired.",null,null],[3,"RwLock","","A reader-writer lock",null,null],[3,"RwLockReadGuard","","RAII structure used to release the shared read access of a lock when\ndropped.",null,null],[3,"RwLockWriteGuard","","RAII structure used to release the exclusive write access of a lock when\ndropped.",null,null],[3,"Mutex","","A mutual exclusion primitive useful for protecting shared data",null,null],[3,"MutexGuard","","An RAII implementation of a "scoped lock" of a mutex. When this structure is\ndropped (falls out of scope), the lock will be unlocked.",null,null],[3,"Condvar","","A Condition Variable",null,null],[3,"WaitTimeoutResult","","A type indicating whether a timed wait on a condition variable returned\ndue to a time out or not.",null,null],[4,"TryLockError","","An enumeration of possible errors which can occur while calling the\n`try_lock` method.",null,null],[13,"Poisoned","","The lock could not be acquired because another thread failed while holding\nthe lock.",0,null],[13,"WouldBlock","","The lock could not be acquired at this time because the operation would\notherwise block.",0,null],[11,"new","","Creates a new instance of an `RwLock<T>` which is unlocked.",1,{"inputs":[{"name":"t"}],"output":{"name":"rwlock"}}],[11,"read","","Locks this rwlock with shared read access, blocking the current thread\nuntil it can be acquired.",1,null],[11,"try_read","","Attempts to acquire this rwlock with shared read access.",1,null],[11,"write","","Locks this rwlock with exclusive write access, blocking the current\nthread until it can be acquired.",1,null],[11,"try_write","","Attempts to lock this rwlock with exclusive write access.",1,null],[11,"is_poisoned","","Determines whether the lock is poisoned.",1,null],[11,"into_inner","","Consumes this `RwLock`, returning the underlying data.",1,null],[11,"get_mut","","Returns a mutable reference to the underlying data.",1,null],[11,"drop","","",1,null],[11,"fmt","","",1,null],[11,"map","","Transform this guard to hold a sub-borrow of the original data.",2,null],[11,"deref","","",2,null],[11,"deref","","",3,null],[11,"deref_mut","","",3,null],[11,"drop","","",2,null],[11,"drop","","",3,null],[11,"new","","Creates a new mutex in an unlocked state ready for use.",4,{"inputs":[{"name":"t"}],"output":{"name":"mutex"}}],[11,"lock","","Acquires a mutex, blocking the current thread until it is able to do so.",4,null],[11,"try_lock","","Attempts to acquire this lock.",4,null],[11,"is_poisoned","","Determines whether the lock is poisoned.",4,null],[11,"into_inner","","Consumes this mutex, returning the underlying data.",4,null],[11,"get_mut","","Returns a mutable reference to the underlying data.",4,null],[11,"drop","","",4,null],[11,"fmt","","",4,null],[11,"map","","Transform this guard to hold a sub-borrow of the original data.",5,{"inputs":[{"name":"self"},{"name":"f"}],"output":{"name":"mutexguard"}}],[11,"filter_map","","Conditionally get a new guard to a sub-borrow depending on the original\ncontents of the guard.",5,{"inputs":[{"name":"self"},{"name":"f"}],"output":{"name":"result"}}],[11,"deref","","",5,null],[11,"deref_mut","","",5,null],[11,"drop","","",5,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"fmt","","",6,null],[11,"timed_out","","Returns whether the wait was known to have timed out.",6,null],[11,"new","","Creates a new condition variable which is ready to be waited on and\nnotified.",7,{"inputs":[],"output":{"name":"condvar"}}],[11,"wait","","Blocks the current thread until this condition variable receives a\nnotification.",7,null],[11,"notify_one","","Wakes up one blocked thread on this condvar.",7,null],[11,"notify_all","","Wakes up all blocked threads on this condvar.",7,null],[11,"drop","","",7,null],[11,"fmt","","",8,null],[11,"fmt","","",8,null],[11,"description","","",8,null],[11,"new","","Creates a `PoisonError`.",8,{"inputs":[{"name":"t"}],"output":{"name":"poisonerror"}}],[11,"into_inner","","Consumes this error indicating that a lock is poisoned, returning the\nunderlying guard to allow access regardless.",8,null],[11,"get_ref","","Reaches into this error indicating that a lock is poisoned, returning a\nreference to the underlying guard to allow access regardless.",8,null],[11,"get_mut","","Reaches into this error indicating that a lock is poisoned, returning a\nreference to the underlying guard to allow access regardless.",8,null],[11,"from","","",0,{"inputs":[{"name":"poisonerror"}],"output":{"name":"trylockerror"}}],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[6,"LockResult","","A type alias for the result of a lock method which can be poisoned.",null,null],[6,"TryLockResult","","A type alias for the result of a nonblocking locking method.",null,null]],"paths":[[4,"TryLockError"],[3,"RwLock"],[3,"RwLockReadGuard"],[3,"RwLockWriteGuard"],[3,"Mutex"],[3,"MutexGuard"],[3,"WaitTimeoutResult"],[3,"Condvar"],[3,"PoisonError"]]}; initSearch(searchIndex);