Crate async_txn

Source
Expand description

A generic optimistic transaction manger, which is ACID, concurrent with SSI (Serializable Snapshot Isolation).

For sync version, please see txn

Modules§

error
Error types for the [async-txn] crate. Errors

Structs§

AsyncMarker
A marker used to mark the keys that are read.
AsyncRtm
AsyncRtm is a read-only transaction manager.
AsyncStdSpawner
A AsyncSpawner that uses the async-std runtime.
AsyncTm
A multi-writer multi-reader MVCC, ACID, Serializable Snapshot Isolation transaction manager.
AsyncWtm
AsyncWtm is used to perform writes to the database. It is created by calling AsyncTm::write.
BTreeCm
A Cm conflict manager implementation that based on the BTreeSet.
Entry
An entry can be persisted to the database.
EntryRef
The reference of the Entry.
EntryValue
A entry value
HashCm
A Cm conflict manager implementation that based on the Hash.
HashCmOptions
Options for the HashCm.
Marker
A marker used to mark the keys that are read.
OneOrMore
A tiny vec which can inline 1 element on stack.
SmolSpawner
A AsyncSpawner that uses the smol runtime.
TokioSpawner
A AsyncSpawner that uses the tokio runtime.
WasmSpawner
A AsyncSpawner that uses the wasm-bindgen-futures runtime.

Enums§

EntryData
The data of the Entry.
EntryDataRef
The reference of the EntryData.

Traits§

AsyncCm
The conflict manager that can be used to manage the conflicts in a transaction.
AsyncCmComparable
An optimized version of the AsyncCm trait that if your conflict manager is depend on the order.
AsyncCmComparableRange
An optimized version of the AsyncCmRange trait that if your conflict manager is depend on the order.
AsyncCmEquivalent
An optimized version of the AsyncCm trait that if your conflict manager is depend on hash.
AsyncCmEquivalentRange
An optimized version of the AsyncCmRange trait that if your conflict manager is depend on hash.
AsyncCmRange
A extended trait of the AsyncCm trait that can be used to manage the range of keys.
AsyncPwm
A pending writes manager that can be used to store pending writes in a transaction.
AsyncPwmComparable
An optimized version of the AsyncPwm trait that if your pending writes manager is depend on the order.
AsyncPwmComparableRange
An trait that can be used to get a range over the pending writes.
AsyncPwmEquivalent
An optimized version of the AsyncPwm trait that if your pending writes manager is depend on hash.
AsyncPwmEquivalentRange
An trait that can be used to get a range over the pending writes.
AsyncPwmRange
An trait that can be used to get a range over the pending writes.
AsyncSpawner
A spawner trait for spawning futures.
Cm
The conflict manager that can be used to manage the conflicts in a transaction.
CmComparable
An optimized version of the Cm trait that if your conflict manager is depend on the order.
CmEquivalent
An optimized version of the Cm trait that if your conflict manager is depend on hash.
Detach
Detaches the task related to the join handle to let it keep running in the background.
Pwm
A pending writes manager that can be used to store pending writes in a transaction.
PwmComparable
An optimized version of the Pwm trait that if your pending writes manager is depend on the order.
PwmComparableRange
An trait that can be used to get a range over the pending writes.
PwmEquivalent
An optimized version of the Pwm trait that if your pending writes manager is depend on hash.
PwmEquivalentRange
An trait that can be used to get a range over the pending writes.
PwmRange
An trait that can be used to get a range over the pending writes.

Type Aliases§

BTreePwm
A type alias for Pwm that based on the BTreeMap.
IndexMapPwm
A type alias for Pwm that based on the IndexMap.