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 - A
AsyncSpawner
that uses theasync-std
runtime. - 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
Cm
conflict 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
Cm
conflict 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 - A
AsyncSpawner
that uses thesmol
runtime. - Tokio
Spawner - A
AsyncSpawner
that uses thetokio
runtime. - Wasm
Spawner - A
AsyncSpawner
that uses thewasm-bindgen-futures
runtime.
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
AsyncCm
trait that if your conflict manager is depend on the order. - Async
CmComparable Range - An optimized version of the
AsyncCmRange
trait that if your conflict manager is depend on the order. - Async
CmEquivalent - An optimized version of the
AsyncCm
trait that if your conflict manager is depend on hash. - Async
CmEquivalent Range - An optimized version of the
AsyncCmRange
trait that if your conflict manager is depend on hash. - Async
CmRange - A extended trait of the
AsyncCm
trait 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
AsyncPwm
trait 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
AsyncPwm
trait 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
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. - PwmComparable
Range - 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. - 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.