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§
- Async
Marker - A marker used to mark the keys that are read.
- Async
Rtm - AsyncRtm is a read-only transaction manager.
- Async
StdSpawner async-std - A
AsyncSpawnerthat uses theasync-stdruntime. - AsyncTm
- A multi-writer multi-reader MVCC, ACID, Serializable Snapshot Isolation transaction manager.
- Async
Wtm - AsyncWtm is used to perform writes to the database. It is created by
calling
AsyncTm::write. - BTreeCm
- A
Cmconflict manager implementation that based on theBTreeSet. - Entry
- An entry can be persisted to the database.
- Entry
Ref - The reference of the
Entry. - Entry
Value - A entry value
- HashCm
- A
Cmconflict manager implementation that based on theHash. - Hash
CmOptions - Options for the
HashCm. - Marker
- A marker used to mark the keys that are read.
- OneOr
More - A tiny vec which can inline 1 element on stack.
- Smol
Spawner smol - A
AsyncSpawnerthat uses thesmolruntime. - Tokio
Spawner tokio - A
AsyncSpawnerthat uses thetokioruntime. - Wasm
Spawner wasm - A
AsyncSpawnerthat uses thewasm-bindgen-futuresruntime.
Enums§
- Entry
Data - The data of the
Entry. - Entry
Data Ref - The reference of the
EntryData.
Traits§
- AsyncCm
- The conflict manager that can be used to manage the conflicts in a transaction.
- Async
CmComparable - An optimized version of the
AsyncCmtrait that if your conflict manager is depend on the order. - Async
CmComparable Range - An optimized version of the
AsyncCmRangetrait that if your conflict manager is depend on the order. - Async
CmEquivalent - An optimized version of the
AsyncCmtrait that if your conflict manager is depend on hash. - Async
CmEquivalent Range - An optimized version of the
AsyncCmRangetrait that if your conflict manager is depend on hash. - Async
CmRange - A extended trait of the
AsyncCmtrait that can be used to manage the range of keys. - Async
Pwm - A pending writes manager that can be used to store pending writes in a transaction.
- Async
PwmComparable - An optimized version of the
AsyncPwmtrait that if your pending writes manager is depend on the order. - Async
PwmComparable Range - An trait that can be used to get a range over the pending writes.
- Async
PwmEquivalent - An optimized version of the
AsyncPwmtrait that if your pending writes manager is depend on hash. - Async
PwmEquivalent Range - An trait that can be used to get a range over the pending writes.
- Async
PwmRange - An trait that can be used to get a range over the pending writes.
- Async
Spawner - 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
Cmtrait that if your conflict manager is depend on the order. - CmEquivalent
- An optimized version of the
Cmtrait 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
Pwmtrait that if your pending writes manager is depend on the order. - PwmComparable
Range - An trait that can be used to get a range over the pending writes.
- PwmEquivalent
- An optimized version of the
Pwmtrait that if your pending writes manager is depend on hash. - PwmEquivalent
Range - 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.