Crate txn_lock

Crate txn_lock 

Source
Expand description

Utilities to support transactional versioning.

General-purpose locks and usage examples are provided in the map, queue, scalar, and set modules.

More complex transaction locks (e.g. for a relational database) can be constructed using the semaphore module.

Modules§

map
A futures-aware read-write lock on a HashMap which supports transactional versioning.
queue
scalar
A transactional lock on a scalar value.
semaphore
A futures-aware semaphore used to maintain the ACID compliance of a mutable data store.
set
A futures-aware read-write lock on a HashSet which supports transactional versioning.

Enums§

Error
An error which may occur when attempting to acquire a transactional lock