Crate ckb_util[][src]

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 $map when it reserves more than $threhold slots for future entries.

Structs

Condvar

A Condition Variable

LinkedHashMap

A linked hash map.

LinkedHashMapEntries

An insertion-order iterator over a LinkedHashMap's entries represented as an OccupiedEntry.

LinkedHashSet

A HashSet that holds elements in insertion order.

Constants

TRY_LOCK_TIMEOUT

The timeout that lock_or_panic waits before it panics.

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.