[−][src]Crate ckb_util
CKB utilities.
Collection of frequently used utilities.
Re-exports
pub use parking_lot; |
Modules
strings | Utilities for std strings. |
Macros
shrink_to_fit | Shrinks the map |
Structs
Condvar | A Condition Variable |
LinkedHashMap | A linked hash map. |
LinkedHashMapEntries | An insertion-order iterator over a |
LinkedHashSet | A HashSet that holds elements in insertion order. |
Constants
TRY_LOCK_TIMEOUT | The timeout that |
Functions
lock_or_panic | Holds the mutex lock or panics after timeout. |
Type Definitions
Mutex | A mutual exclusion primitive useful for protecting shared data |
MutexGuard | An RAII implementation of a "scoped lock" of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked. |
RwLock | A reader-writer lock |
RwLockReadGuard | RAII structure used to release the shared read access of a lock when dropped. |
RwLockWriteGuard | RAII structure used to release the exclusive write access of a lock when dropped. |